| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0599cb7 commit 6f0740e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3638,9 +3638,14 @@ void InitCrypto(Handle<Object> target) { | |||
| 3638 | 3638 | ERR_load_crypto_strings(); | |
| 3639 | 3639 | ||
| 3640 | 3640 | // Turn off compression. Saves memory - do it in userland. | |
| 3641 | - #ifdef SSL_COMP_get_compression_methods | ||
| 3642 | - // Before OpenSSL 0.9.8 this was not possible. | ||
| 3643 | - STACK_OF(SSL_COMP)* comp_methods = SSL_COMP_get_compression_methods(); | ||
| 3641 | + #if !defined(OPENSSL_NO_COMP) | ||
| 3642 | + STACK_OF(SSL_COMP)* comp_methods = | ||
| 3643 | + #if OPENSSL_VERSION_NUMBER < 0x00908000L | ||
| 3644 | + SSL_COMP_get_compression_method() | ||
| 3645 | + #else | ||
| 3646 | + SSL_COMP_get_compression_methods() | ||
| 3647 | + #endif | ||
| 3648 | + ; | ||
| 3644 | 3649 | sk_SSL_COMP_zero(comp_methods); | |
| 3645 | 3650 | assert(sk_SSL_COMP_num(comp_methods) == 0); | |
| 3646 | 3651 | #endif | |
| Back | FazBrowse Home | New Git URL |
0 commit comments