diff options
author | Dong-hee Na <donghee.na@python.org> | 2023-04-07 01:51:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-07 01:51:29 (GMT) |
commit | efb0a2cf3adf4629cf4669cb558758fb78107319 (patch) | |
tree | aab1eedb80dcb8da44c465e4f1295a6109925904 /Modules/_hashopenssl.c | |
parent | f0424ba4b6663d2a4240239266bea08aff46bb6c (diff) | |
download | cpython-efb0a2cf3adf4629cf4669cb558758fb78107319.zip cpython-efb0a2cf3adf4629cf4669cb558758fb78107319.tar.gz cpython-efb0a2cf3adf4629cf4669cb558758fb78107319.tar.bz2 |
gh-103256: Fix hmac algorithm to support fallback implementation (gh-103286)
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Diffstat (limited to 'Modules/_hashopenssl.c')
-rw-r--r-- | Modules/_hashopenssl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c index ee8c588..7476e5d 100644 --- a/Modules/_hashopenssl.c +++ b/Modules/_hashopenssl.c @@ -355,7 +355,7 @@ py_digest_by_name(PyObject *module, const char *name, enum Py_hash_type py_ht) } } if (digest == NULL) { - _setException(PyExc_ValueError, "unsupported hash type %s", name); + _setException(state->unsupported_digestmod_error, "unsupported hash type %s", name); return NULL; } return digest; |