diff options
author | Aman Gupta <aman@tmm1.net> | 2015-09-22 19:54:15 -0700 |
---|---|---|
committer | Aman Gupta <aman@tmm1.net> | 2015-09-22 19:54:15 -0700 |
commit | 5f95c4e055be953acabac2f430491fc8c225264c (patch) | |
tree | 0e5a4f1265504a1437fd880cfe3fa4a0327285e7 | |
parent | 371470e73f2c79f4d9babc86f59b5d580defb050 (diff) | |
download | Nim-5f95c4e055be953acabac2f430491fc8c225264c.tar.gz |
avoid referencing undefined SSLv2_method on mac osx
-rw-r--r-- | lib/pure/net.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/net.nim b/lib/pure/net.nim index 0ce5b4d25..08e944727 100644 --- a/lib/pure/net.nim +++ b/lib/pure/net.nim @@ -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() |