mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-01 10:52:14 +00:00
net: revert compatibility changes for Windows
This reverts commitd53a6355f3and688b1f250e.
This commit is contained in:
@@ -534,10 +534,7 @@ when defineSsl:
|
||||
raiseSSLError("Verification of private key file failed.")
|
||||
|
||||
proc newContext*(protVersion = protSSLv23, verifyMode = CVerifyPeer,
|
||||
certFile = "", keyFile = "",
|
||||
# XXX: update the OpenSSL that we ship with Windows for the
|
||||
# next release.
|
||||
cipherList = when not defined(windows): CiphersIntermediate else: CiphersOld,
|
||||
certFile = "", keyFile = "", cipherList = CiphersIntermediate,
|
||||
caDir = "", caFile = ""): SSLContext =
|
||||
## Creates an SSL context.
|
||||
##
|
||||
@@ -588,7 +585,7 @@ when defineSsl:
|
||||
#
|
||||
# From OpenSSL >= 1.1.0, this setting is set by default and can't be
|
||||
# overriden.
|
||||
if getOpenSSLVersion() >= 0x10002000 and newCTX.SSL_CTX_set_ecdh_auto(1) != 1:
|
||||
if newCTX.SSL_CTX_set_ecdh_auto(1) != 1:
|
||||
raiseSSLError()
|
||||
|
||||
when defined(nimDisableCertificateValidation) or defined(windows):
|
||||
|
||||
Reference in New Issue
Block a user