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.
This commit is contained in:
Leorize
2020-06-04 09:00:03 -05:00
committed by Andreas Rumpf
parent 279438f1df
commit 0ca069b4f8

View File

@@ -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.
##