aboutsummaryrefslogtreecommitdiff
path: root/databases/mysql56-server/files/patch-vio_viossl.c
diff options
context:
space:
mode:
Diffstat (limited to 'databases/mysql56-server/files/patch-vio_viossl.c')
-rw-r--r--databases/mysql56-server/files/patch-vio_viossl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/databases/mysql56-server/files/patch-vio_viossl.c b/databases/mysql56-server/files/patch-vio_viossl.c
index 3180abbd7f0f..54a6280525fc 100644
--- a/databases/mysql56-server/files/patch-vio_viossl.c
+++ b/databases/mysql56-server/files/patch-vio_viossl.c
@@ -1,5 +1,14 @@
--- vio/viossl.c.orig 2019-11-26 16:53:45 UTC
+++ vio/viossl.c
+@@ -385,7 +385,7 @@ static int ssl_do(struct st_VioSSLFd *ptr, Vio *vio,
+ DBUG_PRINT("info", ("ssl: 0x%lx timeout: %ld", (long) ssl, timeout));
+ SSL_clear(ssl);
+ SSL_set_fd(ssl, sd);
+-#if defined(SSL_OP_NO_COMPRESSION)
++#if defined(SSL_OP_NO_COMPRESSION) && !defined(LIBRESSL_VERSION_NUMBER)
+ SSL_set_options(ssl, SSL_OP_NO_COMPRESSION); /* OpenSSL >= 1.0 only */
+ #elif OPENSSL_VERSION_NUMBER >= 0x00908000L /* workaround for OpenSSL 0.9.8 */
+ sk_SSL_COMP_zero(SSL_COMP_get_compression_methods());
@@ -403,7 +403,7 @@ static int ssl_do(struct st_VioSSLFd *ptr, Vio *vio,
for (j = 0; j < n; j++)
{