summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/pure/sockets.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/pure/sockets.nim b/lib/pure/sockets.nim
index 6a3c644bd..01b97197e 100755
--- a/lib/pure/sockets.nim
+++ b/lib/pure/sockets.nim
@@ -258,7 +258,10 @@ when defined(ssl):
     of protSSLv23:
       newCTX = SSL_CTX_new(SSLv23_method()) # SSlv2,3 and TLS1 support.
     of protSSLv2:
-      newCTX = SSL_CTX_new(SSLv2_method())
+      when not defined(linux):
+        newCTX = SSL_CTX_new(SSLv2_method())
+      else:
+        SSLError()
     of protSSLv3:
       newCTX = SSL_CTX_new(SSLv3_method())
     of protTLSv1: