diff options
author | Arnavion <arnavion@gmail.com> | 2015-02-14 00:30:00 -0800 |
---|---|---|
committer | Arnavion <arnavion@gmail.com> | 2015-02-14 00:30:00 -0800 |
commit | a22816fbbd4adb08b054de0f2f393474737e5da3 (patch) | |
tree | 27eb2120bce7d31587e80f20a2d74e608c166c21 /src/common/ssl.c | |
parent | b6877ccf5c7676a7b7c64797d38cf8833692e1ae (diff) |
Don't try to disable compression if openssl hasn't been compiled with compression support.
The function is still defined in openssl/ssl.h but not in the actual library, so it cannot be linked to.
Diffstat (limited to 'src/common/ssl.c')
-rw-r--r-- | src/common/ssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/ssl.c b/src/common/ssl.c index 22286d60..2e34a1e5 100644 --- a/src/common/ssl.c +++ b/src/common/ssl.c @@ -99,7 +99,7 @@ _SSL_context_init (void (*info_cb_func)) |SSL_OP_NO_TICKET |SSL_OP_CIPHER_SERVER_PREFERENCE); -#if OPENSSL_VERSION_NUMBER >= 0x00908000L /* workaround for OpenSSL 0.9.8 */ +#if OPENSSL_VERSION_NUMBER >= 0x00908000L && !defined (OPENSSL_NO_COMP) /* workaround for OpenSSL 0.9.8 */ sk_SSL_COMP_zero(SSL_COMP_get_compression_methods()); #endif |