[3.12] gh-127667: refactor and improve `_hashopenssl.c` error branches (#131145) (#131348)
gh-127667: refactor and improve `_hashopenssl.c` error branches (#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 ac50ece6cea8745834e4ec0a9617809a51245bfc).
B
Bénédikt Tran committed
304ef8440b46caa36c295bd0a47c5c24bbd1a245
Parent: c1faead
Committed by GitHub <noreply@github.com>
on 3/18/2025, 9:16:26 AM