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.
This commit is contained in:
Arnavion 2015-02-14 00:30:00 -08:00
parent b6877ccf5c
commit a22816fbbd
1 changed files with 1 additions and 1 deletions

View File

@ -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