diff options
author | Leorize <leorize+oss@disroot.org> | 2020-06-04 09:00:03 -0500 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2020-06-06 21:11:53 +0200 |
commit | 0ca069b4f8ff4e4f6d85178247818857970ce591 (patch) | |
tree | 9116e48026846894836134128e3f8c719bddcd67 /lib | |
parent | 279438f1df355e2eee09734cc0fc5ab86e0d2271 (diff) | |
download | Nim-0ca069b4f8ff4e4f6d85178247818857970ce591.tar.gz |
net: use CiphersOld list for Windows
The default DLLs shipped are too old, switch to CiphersOld list to ensure compatibility. This commit should be reverted before any future release.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/net.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/pure/net.nim b/lib/pure/net.nim index 5db3edbed..8da14f6e3 100644 --- a/lib/pure/net.nim +++ b/lib/pure/net.nim @@ -534,7 +534,10 @@ when defineSsl: raiseSSLError("Verification of private key file failed.") proc newContext*(protVersion = protSSLv23, verifyMode = CVerifyPeer, - certFile = "", keyFile = "", cipherList = CiphersIntermediate, + certFile = "", keyFile = "", + # XXX: update the OpenSSL that we ship with Windows for the + # next release. + cipherList = when not defined(windows): CiphersIntermediate else: CiphersOld, caDir = "", caFile = ""): SSLContext = ## Creates an SSL context. ## |