disable SSLv2

This commit is contained in:
Aman Gupta
2015-09-23 12:03:14 -07:00
parent 5f95c4e055
commit 4a715b8e08
2 changed files with 2 additions and 8 deletions

View File

@@ -223,10 +223,7 @@ when defined(ssl):
of protSSLv23:
newCTX = SSL_CTX_new(SSLv23_method()) # SSlv2,3 and TLS1 support.
of protSSLv2:
when not defined(linux) and not defined(macosx):
newCTX = SSL_CTX_new(SSLv2_method())
else:
raiseSslError()
raiseSslError()
of protSSLv3:
newCTX = SSL_CTX_new(SSLv3_method())
of protTLSv1:

View File

@@ -314,10 +314,7 @@ when defined(ssl):
of protSSLv23:
newCTX = SSL_CTX_new(SSLv23_method()) # SSlv2,3 and TLS1 support.
of protSSLv2:
when not defined(linux) and not defined(OpenBSD):
newCTX = SSL_CTX_new(SSLv2_method())
else:
raiseSslError()
raiseSslError()
of protSSLv3:
newCTX = SSL_CTX_new(SSLv3_method())
of protTLSv1: