From a7254f3df9362f2ff7fde940a2871303a64931b1 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 1 Apr 2011 12:38:42 -0700 Subject: [PATCH] Revert "Disable compression with OpenSSL." This reverts commit 362785f704b5754f6025bc4bcbe5835688d3002c. --- src/node_crypto.cc | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index b1369d694..14b267fb2 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -2904,6 +2904,9 @@ class Verify : public ObjectWrap { }; + + + void InitCrypto(Handle target) { HandleScope scope; @@ -2913,18 +2916,6 @@ void InitCrypto(Handle target) { SSL_load_error_strings(); ERR_load_crypto_strings(); - // Turn off compression. Saves memory - do it in userland. - STACK_OF(SSL_COMP)* comp_methods = SSL_COMP_get_compression_methods(); -#if 0 - if (comp_methods && sk_SSL_COMP_num(comp_methods) > 0) { - default_compression_method = sk_SSL_COMP_pop(comp_methods); - fprintf(stderr, "SSL_COMP_get_name %s\n", - SSL_COMP_get_name(default_compression_method->method)); - } -#endif - sk_SSL_COMP_zero(comp_methods); - assert(sk_SSL_COMP_num(comp_methods) == 0); - SecureContext::Initialize(target); Connection::Initialize(target); Cipher::Initialize(target); -- 2.34.1