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

-6
This file was deleted.

Modules/_ssl.c

-4
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)