summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2021-06-15 13:00:38 +0200
committerMatt Caswell <matt@openssl.org>2021-06-16 14:30:35 +0100
commiteefdb8e013fa9d0881566b41291c5725a77b332a (patch)
tree0e70fb71ad1bc367d5a13e57f0209e1ad895a1e5 /apps
parent6882652e65d39310c98ba506ceb55a87c702d419 (diff)
X509_digest_sig(): Improve default hash for EdDSA and allow to return the chosen default
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15762)
Diffstat (limited to 'apps')
-rw-r--r--apps/lib/cmp_mock_srv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/lib/cmp_mock_srv.c b/apps/lib/cmp_mock_srv.c
index 1caaa2f0eb..669e695fdc 100644
--- a/apps/lib/cmp_mock_srv.c
+++ b/apps/lib/cmp_mock_srv.c
@@ -347,7 +347,7 @@ static int process_certConf(OSSL_CMP_SRV_CTX *srv_ctx,
return 0;
}
- if ((digest = X509_digest_sig(ctx->certOut)) == NULL)
+ if ((digest = X509_digest_sig(ctx->certOut, NULL, NULL)) == NULL)
return 0;
if (ASN1_OCTET_STRING_cmp(certHash, digest) != 0) {
ASN1_OCTET_STRING_free(digest);