Merge pull request #3364 from tmm1/osx-ssl-compile

Avoid referencing undefined SSLv2_method on MacOSX
This commit is contained in:
Dominik Picheta
2015-09-24 01:16:57 +01:00
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):
newCTX = SSL_CTX_new(SSLv2_method())
else:
raiseSslError()
raiseSslError("SSLv2 is no longer secure and has been deprecated, use protSSLv3")
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("SSLv2 is no longer secure and has been deprecated, use protSSLv3")
of protSSLv3:
newCTX = SSL_CTX_new(SSLv3_method())
of protTLSv1: