diff options
author | aguspiza <aguspiza@yahoo.es> | 2020-06-29 08:50:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-29 08:50:37 +0200 |
commit | d968163cd18c70167ff428bcf8c1b5e3dfb2da5b (patch) | |
tree | a8fe09be56dfca7bfe195d323c472bfa49983b65 | |
parent | 299ddda5f6eaceab0bde443159bd17bab1cdf2f1 (diff) | |
download | Nim-d968163cd18c70167ff428bcf8c1b5e3dfb2da5b.tar.gz |
SSL_CTX_load_verify_locations parameters are reversed (#14815) [backport]
-rw-r--r-- | lib/pure/net.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/net.nim b/lib/pure/net.nim index c1896dc1c..c47d9e8a6 100644 --- a/lib/pure/net.nim +++ b/lib/pure/net.nim @@ -614,7 +614,7 @@ when defineSsl: if verifyMode != CVerifyNone: # Use the caDir and caFile parameters if set if caDir != "" or caFile != "": - if newCTX.SSL_CTX_load_verify_locations(caDir, caFile) != 0: + if newCTX.SSL_CTX_load_verify_locations(caFile, caDir) != 0: raise newException(IOError, "Failed to load SSL/TLS CA certificate(s).") else: |