summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-12-03 21:48:12 +0100
committerAraq <rumpf_a@web.de>2012-12-03 21:48:12 +0100
commit08342240709690f81286aea207a037348e46f635 (patch)
tree7748a5e52cb768b482248562902ae0f92f2a4c31 /lib
parent8948a97151fc000414aee7cd4064881ef646a26c (diff)
downloadNim-08342240709690f81286aea207a037348e46f635.tar.gz
disable SSLv2_method for ubuntu
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: