}
- Handle<Value> GetCiphers(const Arguments& args) {
+ Handle<Value> GetSSLCiphers(const Arguments& args) {
- HandleScope scope;
+ HandleScope scope(node_isolate);
SSL_CTX* ctx = SSL_CTX_new(TLSv1_server_method());
if (ctx == NULL) {
}
+ Handle<Value> GetCiphers(const Arguments& args) {
+ HandleScope scope;
+ Local<Array> arr = Array::New();
+ EVP_CIPHER_do_all_sorted(array_push_back<EVP_CIPHER>, &arr);
+ return scope.Close(arr);
+ }
+
+
Handle<Value> GetHashes(const Arguments& args) {
- HandleScope scope;
+ HandleScope scope(node_isolate);
Local<Array> arr = Array::New();
- EVP_MD_do_all_sorted(add_hash_to_array, &arr);
+ EVP_MD_do_all_sorted(array_push_back<EVP_MD>, &arr);
return scope.Close(arr);
}