summaryrefslogtreecommitdiff
path: root/vio/viossl.c
diff options
context:
space:
mode:
authorHarin Vadodaria <harin.vadodaria@oracle.com>2013-02-19 12:17:31 +0530
committerHarin Vadodaria <harin.vadodaria@oracle.com>2013-02-19 12:17:31 +0530
commitc40136542310982fd365e53f927b5a929f564b3e (patch)
tree62e61b3e56fb410e04fd481d3836184a19894440 /vio/viossl.c
parent8ea6ed92eba894ae297c11f345614cfd69225603 (diff)
downloadmariadb-git-c40136542310982fd365e53f927b5a929f564b3e.tar.gz
Bug#16235681: TURN OFF DEFAULT COMPRESSION WHILE USING
OPENSSL Description: Specify preference to disable compression while using OpenSSL library. OpenSSL uses zlib compression by default which may lead to some problems.
Diffstat (limited to 'vio/viossl.c')
-rw-r--r--vio/viossl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vio/viossl.c b/vio/viossl.c
index 0651fd8b7a3..143d108d3d7 100644
--- a/vio/viossl.c
+++ b/vio/viossl.c
@@ -198,6 +198,9 @@ static int ssl_do(struct st_VioSSLFd *ptr, Vio *vio, long timeout,
SSL_clear(ssl);
SSL_SESSION_set_timeout(SSL_get_session(ssl), timeout);
SSL_set_fd(ssl, vio->sd);
+#ifndef HAVE_YASSL
+ SSL_set_options(ssl, SSL_OP_NO_COMPRESSION);
+#endif
if (connect_accept_func(ssl) < 1)
{