File tree 1 file changed +12
-3
lines changed
1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -2904,9 +2904,6 @@ class Verify : public ObjectWrap {
2904
2904
};
2905
2905
2906
2906
2907
-
2908
-
2909
-
2910
2907
void InitCrypto (Handle <Object> target) {
2911
2908
HandleScope scope;
2912
2909
@@ -2916,6 +2913,18 @@ void InitCrypto(Handle<Object> target) {
2916
2913
SSL_load_error_strings ();
2917
2914
ERR_load_crypto_strings ();
2918
2915
2916
+ // Turn off compression. Saves memory - do it in userland.
2917
+ STACK_OF (SSL_COMP)* comp_methods = SSL_COMP_get_compression_methods ();
2918
+ #if 0
2919
+ if (comp_methods && sk_SSL_COMP_num(comp_methods) > 0) {
2920
+ default_compression_method = sk_SSL_COMP_pop(comp_methods);
2921
+ fprintf(stderr, "SSL_COMP_get_name %s\n",
2922
+ SSL_COMP_get_name(default_compression_method->method));
2923
+ }
2924
+ #endif
2925
+ sk_SSL_COMP_zero (comp_methods);
2926
+ assert (sk_SSL_COMP_num (comp_methods) == 0 );
2927
+
2919
2928
SecureContext::Initialize (target);
2920
2929
Connection::Initialize (target);
2921
2930
Cipher::Initialize (target);
You can’t perform that action at this time.
0 commit comments