diff options
author | Michael Baentsch <info@baentsch.ch> | 2022-03-02 08:48:46 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-03-03 13:32:48 +0100 |
commit | 065442165a3d339a7de469b4cd18a3f902c73443 (patch) | |
tree | 8973883a0a37d85c5a50ca9a7e08efff491d4398 /crypto/objects/obj_xref.c | |
parent | d15d561844d8989e50896724d89681ae7ba81a74 (diff) |
Add testing of OBJ_find_sigid_by_algs()
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17733)
Diffstat (limited to 'crypto/objects/obj_xref.c')
-rw-r--r-- | crypto/objects/obj_xref.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/objects/obj_xref.c b/crypto/objects/obj_xref.c index fc870c5691..18c7ef2b4a 100644 --- a/crypto/objects/obj_xref.c +++ b/crypto/objects/obj_xref.c @@ -112,7 +112,8 @@ int OBJ_find_sigid_by_algs(int *psignid, int dig_nid, int pkey_nid) const nid_triple **rv; int idx; - if (dig_nid == NID_undef || pkey_nid == NID_undef) + /* permitting searches for sig algs without digest: */ + if (pkey_nid == NID_undef) return 0; tmp.hash_id = dig_nid; |