summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-02-24 10:12:47 +0100
committerGitHub <noreply@github.com>2021-02-24 10:12:47 +0100
commitb48a32053f2c65b8601ff991bf6f892534241b11 (patch)
tree1ac1336de12e80e1299a608e3546df9453b83def /lib
parent47c078e29c7e459e8b413dcc0020637e6e042c44 (diff)
downloadNim-b48a32053f2c65b8601ff991bf6f892534241b11.tar.gz
fixes yet another SSL problem on Windows [backport:1.2] (#17167)
Diffstat (limited to 'lib')
-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 594512439..55632950a 100644
--- a/lib/pure/net.nim
+++ b/lib/pure/net.nim
@@ -623,7 +623,7 @@ when defineSsl:
     if newCTX.SSL_CTX_set_ecdh_auto(1) != 1:
       raiseSSLError()
 
-    when defined(nimDisableCertificateValidation) or defined(windows):
+    when defined(nimDisableCertificateValidation):
       newCTX.SSL_CTX_set_verify(SSL_VERIFY_NONE, nil)
     else:
       case verifyMode