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
parent d53a6355f3
commit 688b1f250e

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