diff options
author | Bénédikt Tran <10796600+picnixz@users.noreply.github.com> | 2025-03-17 10:12:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-17 10:12:55 (GMT) |
commit | ac50ece6cea8745834e4ec0a9617809a51245bfc (patch) | |
tree | bd2fcedca3792e25a9676eed51a897ddc06dd0b0 /Python/Python-ast.c | |
parent | 261633bd3f48607478f50d12d8025cd4bb36f6f4 (diff) | |
download | cpython-ac50ece6cea8745834e4ec0a9617809a51245bfc.zip cpython-ac50ece6cea8745834e4ec0a9617809a51245bfc.tar.gz cpython-ac50ece6cea8745834e4ec0a9617809a51245bfc.tar.bz2 |
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.
Diffstat (limited to 'Python/Python-ast.c')
0 files changed, 0 insertions, 0 deletions