basic cleanups regarding SSL handling (#16940) [backport:1.0]
* basic cleanups regarding SSL handling * enabled certificate checking on Windows * updated the SSL test * quoting helps
This commit is contained in:
parent
f140c92409
commit
abac35e743
4 changed files with 59 additions and 18 deletions
|
|
@ -321,7 +321,7 @@ proc getDefaultSSL(): SslContext =
|
|||
result = defaultSslContext
|
||||
when defined(ssl):
|
||||
if result == nil:
|
||||
defaultSslContext = newContext(verifyMode = CVerifyNone)
|
||||
defaultSslContext = newContext(verifyMode = CVerifyPeer)
|
||||
result = defaultSslContext
|
||||
doAssert result != nil, "failure to initialize the SSL context"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue