SSL_CTX_load_verify_locations parameters are reversed (#14815) [backport]

This commit is contained in:
aguspiza
2020-06-29 08:50:37 +02:00
committed by GitHub
parent 299ddda5f6
commit d968163cd1

View File

@@ -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: