mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-28 21:58:28 +00:00
avoid referencing undefined SSLv2_method on mac osx
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user