]> git.ipfire.org Git - thirdparty/openssl.git/commit
fix: ossl_digest_get_approved_nid() returns NID_undef on invalid digest
authorRichard Levitte <levitte@openssl.org>
Wed, 28 Aug 2024 14:36:31 +0000 (16:36 +0200)
committerTomas Mraz <tomas@openssl.org>
Fri, 30 Aug 2024 09:54:13 +0000 (11:54 +0200)
commitd1c2c054a4b585eed8c883367d80e2a972c4846f
treeb6c535e896a2f08d75d521b6480331ea98079d78
parentf68ba38e189088cae4c625c995dd3fcec01d657c
fix: ossl_digest_get_approved_nid() returns NID_undef on invalid digest

We checked using 'md_nid < 0', which is faulty.

Impact: DSA and ECDSA signature provider implementations

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24992)
providers/implementations/signature/dsa_sig.c
providers/implementations/signature/ecdsa_sig.c
providers/implementations/signature/rsa_sig.c