Adapt our OSSL_FUNC_keymgmt_match() implementations to the EVP_PKEY_eq() fix
authorRichard Levitte <levitte@openssl.org>
Wed, 29 Sep 2021 09:05:41 +0000 (11:05 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 13 Dec 2021 06:52:53 +0000 (07:52 +0100)
commitee22a3741e3fc27c981e7f7e9bcb8d3342b0c65a
treeea0cc4cfce353cad79b39713ac0fa22443a49a19
parentf3ba62653815b2f7991103cdbea1ac155c8c916a
Adapt our OSSL_FUNC_keymgmt_match() implementations to the EVP_PKEY_eq() fix

The match function (called OSSL_FUNC_keymgmt_match() in our documentation)
in our KEYMGMT implementations were interpretting the selector bits a
bit too strictly, so they get a bit relaxed to make it reasonable to
match diverse key contents.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16765)
providers/implementations/keymgmt/dh_kmgmt.c
providers/implementations/keymgmt/dsa_kmgmt.c
providers/implementations/keymgmt/ec_kmgmt.c
providers/implementations/keymgmt/ecx_kmgmt.c
providers/implementations/keymgmt/rsa_kmgmt.c