Skip to content

Commit a7254f3

Browse files
committed
Revert "Disable compression with OpenSSL."
This reverts commit 362785f.
1 parent 362785f commit a7254f3

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

src/node_crypto.cc

+3-12
Original file line numberDiff line numberDiff line change
@@ -2904,6 +2904,9 @@ class Verify : public ObjectWrap {
29042904
};
29052905

29062906

2907+
2908+
2909+
29072910
void InitCrypto(Handle<Object> target) {
29082911
HandleScope scope;
29092912

@@ -2913,18 +2916,6 @@ void InitCrypto(Handle<Object> target) {
29132916
SSL_load_error_strings();
29142917
ERR_load_crypto_strings();
29152918

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-
29282919
SecureContext::Initialize(target);
29292920
Connection::Initialize(target);
29302921
Cipher::Initialize(target);

0 commit comments

Comments
 (0)