forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-107077: Raise SSLCertVerificationError even if the error is …
…set via SSL_ERROR_SYSCALL (pythonGH-107586) (cherry picked from commit 77e0919) Co-authored-by: Pablo Galindo Salgado <[email protected]> Co-authored-by: T. Wouters <[email protected]>
- Loading branch information
1 parent
12d1c49
commit 197a5b1
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
Misc/NEWS.d/next/Library/2023-08-03-12-52-19.gh-issue-107077.-pzHD6.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Seems that in some conditions, OpenSSL will return ``SSL_ERROR_SYSCALL`` | ||
instead of ``SSL_ERROR_SSL`` when a certification verification has failed, | ||
but the error parameters will still contain ``ERR_LIB_SSL`` and | ||
``SSL_R_CERTIFICATE_VERIFY_FAILED``. We are now detecting this situation and | ||
raising the appropiate ``ssl.SSLCertVerificationError``. Patch by Pablo | ||
Galindo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters