summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2015-09-22 19:54:15 -0700
committerAman Gupta <aman@tmm1.net>2015-09-22 19:54:15 -0700
commit5f95c4e055be953acabac2f430491fc8c225264c (patch)
tree0e5a4f1265504a1437fd880cfe3fa4a0327285e7
parent371470e73f2c79f4d9babc86f59b5d580defb050 (diff)
downloadNim-5f95c4e055be953acabac2f430491fc8c225264c.tar.gz
avoid referencing undefined SSLv2_method on mac osx
-rw-r--r--lib/pure/net.nim2
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()