SSL_CTX_load_verify_locations parameters are reversed (#14815) [backport]

(cherry picked from commit d968163cd1)
This commit is contained in:
aguspiza
2020-06-29 08:50:37 +02:00
committed by narimiran
parent ba808ba7ee
commit 4d6cb1ff21

View File

@@ -591,7 +591,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: