From 718e3f8b6883c8332b55f864d057ca80b2541ded Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Wed, 19 May 2021 14:41:03 +1000 Subject: [PATCH] hx509: correct ASN.1 OID typo for SHA-384 A copy and paste error initialized the SHA-384 structure in libhx509 with the OID for SHA-512. Fixes: 776 --- lib/hx509/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hx509/crypto.c b/lib/hx509/crypto.c index 84645bbbf..77e721064 100644 --- a/lib/hx509/crypto.c +++ b/lib/hx509/crypto.c @@ -904,7 +904,7 @@ static const struct signature_alg sha512_alg = { static const struct signature_alg sha384_alg = { "sha-384", - ASN1_OID_ID_SHA512, + ASN1_OID_ID_SHA384, &_hx509_signature_sha384_data, NULL, NULL,