Skip to content

Commit

Permalink
[3.10] Revert "[3.10] gh-107077: Raise SSLCertVerificationError even …
Browse files Browse the repository at this point in the history
…if the error is set via SSL_ERROR_SYSCALL (GH-107586) (#107589)" (#107602)
  • Loading branch information
pablogsal authored Aug 3, 2023
1 parent 24d54fe commit c32f095
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.

This file was deleted.

4 changes: 0 additions & 4 deletions Modules/_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -656,10 +656,6 @@ PySSL_SetError(PySSLSocket *sslsock, int ret, const char *filename, int lineno)
errstr = "Some I/O error occurred";
}
} else {
if (ERR_GET_LIB(e) == ERR_LIB_SSL &&
ERR_GET_REASON(e) == SSL_R_CERTIFICATE_VERIFY_FAILED) {
type = state->PySSLCertVerificationErrorObject;
}
p = PY_SSL_ERROR_SYSCALL;
}
break;
Expand Down

0 comments on commit c32f095

Please sign in to comment.