daa36bfe2b
Reported by: Andrea Venturoli <ml__at__netfence.it>
12 lines
636 B
C
12 lines
636 B
C
--- lib/imclient.c.orig 2015-11-30 06:30:33 UTC
|
|
+++ lib/imclient.c
|
|
@@ -1641,7 +1641,9 @@ static int tls_init_clientengine(struct
|
|
off |= SSL_OP_ALL; /* Work around all known bugs */
|
|
off |= SSL_OP_NO_SSLv2; /* Disable insecure SSLv2 */
|
|
off |= SSL_OP_NO_SSLv3; /* Disable insecure SSLv3 */
|
|
+#if (OPENSSL_VERSION_NUMBER >= 0x1000000fL)
|
|
off |= SSL_OP_NO_COMPRESSION; /* Disable TLS compression */
|
|
+#endif // (OPENSSL_VERSION_NUMBER >= 0x1000000fL)
|
|
SSL_CTX_set_options(imclient->tls_ctx, off);
|
|
|
|
/* debugging SSL_CTX_set_info_callback(imclient->tls_ctx, apps_ssl_info_callback); */
|