From a22816fbbd4adb08b054de0f2f393474737e5da3 Mon Sep 17 00:00:00 2001 From: Arnavion Date: Sat, 14 Feb 2015 00:30:00 -0800 Subject: 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. --- src/common/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.4.1