summaryrefslogtreecommitdiffstats
path: root/crypto/objects
diff options
context:
space:
mode:
authorMichael Baentsch <info@baentsch.ch>2021-10-07 10:45:48 +0200
committerTomas Mraz <tomas@openssl.org>2021-10-22 16:26:46 +0200
commit4f716249643fe97a2bdf59a11cc10e1bef8103e9 (patch)
tree9b50786735838d671b3bf6285dd3410efd058b7b /crypto/objects
parent25ead551aa31feae91cab91b648a2ca16bc7a8dc (diff)
Permit no/empty digest in core_obj_add_sigid
Also add digest parameter documentation for add_sigid and permit NULL as digest name in the provider upcall. Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16770)
Diffstat (limited to 'crypto/objects')
-rw-r--r--crypto/objects/obj_xref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/objects/obj_xref.c b/crypto/objects/obj_xref.c
index 3a6ae02bf0..8b4980d5b5 100644
--- a/crypto/objects/obj_xref.c
+++ b/crypto/objects/obj_xref.c
@@ -141,7 +141,7 @@ int OBJ_add_sigid(int signid, int dig_id, int pkey_id)
nid_triple *ntr;
int dnid = NID_undef, pnid = NID_undef, ret = 0;
- if (signid == NID_undef || dig_id == NID_undef || pkey_id == NID_undef)
+ if (signid == NID_undef || pkey_id == NID_undef)
return 0;
if (!obj_sig_init())