avoid referencing undefined SSLv2_method on mac osx

This commit is contained in:
Aman Gupta
2015-09-22 19:54:15 -07:00
parent 371470e73f
commit 5f95c4e055

View File

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