summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarin Vadodaria <harin.vadodaria@oracle.com>2013-02-19 12:19:10 +0530
committerHarin Vadodaria <harin.vadodaria@oracle.com>2013-02-19 12:19:10 +0530
commit02c7c2a68c751e5c38ea472936e85e241aa90922 (patch)
treeb33d0ad732f0046545b3a2627d1323b03c078090
parented23d8ab1043011a0a8ec46e1c472e6bb0198702 (diff)
parentd1aeebd5928c3615d34f42f020c883144a645fff (diff)
downloadmariadb-git-02c7c2a68c751e5c38ea472936e85e241aa90922.tar.gz
Bug#16235681: TURN OFF DEFAULT COMPRESSION WHILE USING
OPENSSL Description: Merge from 5.1.
-rw-r--r--vio/viossl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/vio/viossl.c b/vio/viossl.c
index e7ab7e4c6d1..f3da12b50c5 100644
--- a/vio/viossl.c
+++ b/vio/viossl.c
@@ -171,6 +171,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 ((r= connect_accept_func(ssl)) < 1)
{