Commit 304ef84
authored
[3.12] pythongh-127667: refactor and improve
pythongh-127667: refactor and improve `_hashopenssl.c` error branches (python#131145)
Refactor `_setException()` into different helpers that can be used separately:
- set_ssl_exception_from_errcode(): set an exception from an explicit SSL error code.
- raise_ssl_error(): set an exception from the last SSL error code or use a user-defined message.
- notify_ssl_error_occurred(): same as raise_ssl_error() but with a generic default message.
(cherry-picked from commit ac50ece)._hashopenssl.c error branches (python#131145) (python#131348)1 parent c1faead commit 304ef84
1 file changed
Lines changed: 111 additions & 70 deletions
0 commit comments