From 30e57327d5921be080bad5394860fce33b7c3f74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 10 Oct 2011 04:23:24 +0000 Subject: Disable SSLv2 access methods in kdebase if underlying system does not support them NOTE: This may cause as-of-yet unknown glitches in the crypto kcontrol module GUI. File bugs if any are noted! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1258117 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kcontrol/crypto/crypto.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kcontrol/crypto') diff --git a/kcontrol/crypto/crypto.cpp b/kcontrol/crypto/crypto.cpp index e8f2d7ac0..ee9f256b6 100644 --- a/kcontrol/crypto/crypto.cpp +++ b/kcontrol/crypto/crypto.cpp @@ -2333,6 +2333,7 @@ SSL_CONST SSL_METHOD *meth; SSLv2Box->clear(); SSLv3Box->clear(); +#ifndef OPENSSL_NO_SSL2 meth = SSLv2_client_method(); SSLeay_add_ssl_algorithms(); ctx = SSL_CTX_new(meth); @@ -2360,6 +2361,7 @@ SSL_CONST SSL_METHOD *meth; if (ctx) SSL_CTX_free(ctx); if (ssl) SSL_free(ssl); +#endif // We repeat for SSLv3 meth = SSLv3_client_method(); -- cgit v1.2.3