1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-28 20:22:15 -05:00

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

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