summaryrefslogtreecommitdiffstats
path: root/kcontrol/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'kcontrol/crypto')
-rw-r--r--kcontrol/crypto/crypto.cpp2
1 files changed, 2 insertions, 0 deletions
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();