SSL_CTX_load_verify_locations parameters are reversed (#14815) [backport]
This commit is contained in:
parent
299ddda5f6
commit
d968163cd1
1 changed files with 1 additions and 1 deletions
|
|
@ -614,7 +614,7 @@ when defineSsl:
|
||||||
if verifyMode != CVerifyNone:
|
if verifyMode != CVerifyNone:
|
||||||
# Use the caDir and caFile parameters if set
|
# Use the caDir and caFile parameters if set
|
||||||
if caDir != "" or caFile != "":
|
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).")
|
raise newException(IOError, "Failed to load SSL/TLS CA certificate(s).")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue