diff options
author | Aman Gupta <aman@tmm1.net> | 2015-09-23 12:03:14 -0700 |
---|---|---|
committer | Aman Gupta <aman@tmm1.net> | 2015-09-23 12:03:14 -0700 |
commit | 4a715b8e085319c671d86638c326fd1bee14b9a6 (patch) | |
tree | fa1f1e81cc18f48677a5c2be8735e3b0c004a468 /lib/pure | |
parent | 5f95c4e055be953acabac2f430491fc8c225264c (diff) | |
download | Nim-4a715b8e085319c671d86638c326fd1bee14b9a6.tar.gz |
disable SSLv2
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/net.nim | 5 | ||||
-rw-r--r-- | lib/pure/sockets.nim | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/lib/pure/net.nim b/lib/pure/net.nim index 08e944727..48a973e8d 100644 --- a/lib/pure/net.nim +++ b/lib/pure/net.nim @@ -223,10 +223,7 @@ when defined(ssl): of protSSLv23: newCTX = SSL_CTX_new(SSLv23_method()) # SSlv2,3 and TLS1 support. of protSSLv2: - when not defined(linux) and not defined(macosx): - newCTX = SSL_CTX_new(SSLv2_method()) - else: - raiseSslError() + raiseSslError() of protSSLv3: newCTX = SSL_CTX_new(SSLv3_method()) of protTLSv1: diff --git a/lib/pure/sockets.nim b/lib/pure/sockets.nim index 29f0bf87d..1b76a3a5e 100644 --- a/lib/pure/sockets.nim +++ b/lib/pure/sockets.nim @@ -314,10 +314,7 @@ when defined(ssl): of protSSLv23: newCTX = SSL_CTX_new(SSLv23_method()) # SSlv2,3 and TLS1 support. of protSSLv2: - when not defined(linux) and not defined(OpenBSD): - newCTX = SSL_CTX_new(SSLv2_method()) - else: - raiseSslError() + raiseSslError() of protSSLv3: newCTX = SSL_CTX_new(SSLv3_method()) of protTLSv1: |