summaryrefslogtreecommitdiffstats
path: root/crypto/asn1
diff options
context:
space:
mode:
authorVladimĂ­r Kotal <vladimir.kotal@oracle.com>2023-06-15 17:03:21 +0200
committerPauli <pauli@openssl.org>2023-06-18 16:58:54 +1000
commitf52aec35260627c37f114352843dc0bc22311a17 (patch)
tree08df4fa245a1f0a379d880166769ef10be06e03e /crypto/asn1
parentd808fa015132d63f06f555649bc4b3f0e2e5124e (diff)
log actual NID causing the 'unknown message digest algorithm error'
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21214)
Diffstat (limited to 'crypto/asn1')
-rw-r--r--crypto/asn1/a_verify.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/asn1/a_verify.c b/crypto/asn1/a_verify.c
index a55f60d757..8aae75ac13 100644
--- a/crypto/asn1/a_verify.c
+++ b/crypto/asn1/a_verify.c
@@ -180,8 +180,9 @@ int ASN1_item_verify_ctx(const ASN1_ITEM *it, const X509_ALGOR *alg,
if (mdnid != NID_undef) {
type = EVP_get_digestbynid(mdnid);
if (type == NULL) {
- ERR_raise(ERR_LIB_ASN1,
- ASN1_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM);
+ ERR_raise_data(ERR_LIB_ASN1,
+ ASN1_R_UNKNOWN_MESSAGE_DIGEST_ALGORITHM,
+ "nid=0x%x", mdnid);
goto err;
}
}