From 5f95c4e055be953acabac2f430491fc8c225264c Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Tue, 22 Sep 2015 19:54:15 -0700 Subject: [PATCH] avoid referencing undefined SSLv2_method on mac osx --- lib/pure/net.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pure/net.nim b/lib/pure/net.nim index 0ce5b4d25d..08e944727a 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()