diff options
author | Paul Roberts <paul.roberts@guardian.co.uk> | 2021-07-20 11:50:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-20 12:50:43 +0200 |
commit | 6286b5599c7d9fc03f3a6809f5c17fbefc23427e (patch) | |
tree | 04ff996cd2b41c01b8456ab51fd66e6ef04ca656 /lib/pure/net.nim | |
parent | 5e011e8e42b2e4e322e9b40d4075da6d4a9103e5 (diff) | |
download | Nim-6286b5599c7d9fc03f3a6809f5c17fbefc23427e.tar.gz |
termux ssl (#18520)
Diffstat (limited to 'lib/pure/net.nim')
-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 934dd034e..c2e4810de 100644 --- a/lib/pure/net.nim +++ b/lib/pure/net.nim @@ -647,7 +647,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(caFile, caDir) != VerifySuccess: + if newCTX.SSL_CTX_load_verify_locations(if caFile == "": nil else: caFile.cstring, if caDir == "": nil else: caDir.cstring) != VerifySuccess: raise newException(IOError, "Failed to load SSL/TLS CA certificate(s).") else: |