diff options
author | Michael Baentsch <info@baentsch.ch> | 2022-03-02 08:48:46 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-11-11 10:04:10 +0100 |
commit | 0f3de2f0b92b8d963bbf37b8216268324f981bb9 (patch) | |
tree | e87fe08255ab13c20bef9290d8170116cf4a9e1c /crypto/objects | |
parent | c581148fa4804f7d3fe01e47f1fd788494d7723a (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)
(cherry picked from commit 065442165a3d339a7de469b4cd18a3f902c73443)
Diffstat (limited to 'crypto/objects')
-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; |