Skip to content

Commit c32f095

Browse files
authored
[3.10] Revert "[3.10] gh-107077: Raise SSLCertVerificationError even if the error is set via SSL_ERROR_SYSCALL (GH-107586) (#107589)" (#107602)
1 parent 24d54fe commit c32f095

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

Misc/NEWS.d/next/Library/2023-08-03-12-52-19.gh-issue-107077.-pzHD6.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

Modules/_ssl.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -656,10 +656,6 @@ PySSL_SetError(PySSLSocket *sslsock, int ret, const char *filename, int lineno)
656656
errstr = "Some I/O error occurred";
657657
}
658658
} else {
659-
if (ERR_GET_LIB(e) == ERR_LIB_SSL &&
660-
ERR_GET_REASON(e) == SSL_R_CERTIFICATE_VERIFY_FAILED) {
661-
type = state->PySSLCertVerificationErrorObject;
662-
}
663659
p = PY_SSL_ERROR_SYSCALL;
664660
}
665661
break;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy