Make EVP_PKEY_missing_parameters work properly on provided RSA keys
authorTomas Mraz <tomas@openssl.org>
Thu, 11 Mar 2021 12:31:13 +0000 (13:31 +0100)
committerTomas Mraz <tomas@openssl.org>
Wed, 17 Mar 2021 13:57:47 +0000 (14:57 +0100)
commit9a4854405869158bd87ee90345b933815882a24d
tree3bad42c70a66232ac69c0d9e2adcc41ed7b27c17
parente08993eab65cdc67a3f2078e99f366c155eed49d
Make EVP_PKEY_missing_parameters work properly on provided RSA keys

This requires changing semantics of the keymgmt_has()
function a little in the sense that it now returns 1
if the selection has no meaning for the key type. It
was already doing so for ECX keys for example.

The keymgmt_validate function semantics is changed
similarly to allow passing validation on the same
selection that the key returns 1 for.

Fixes #14509

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14511)
doc/man7/provider-keymgmt.pod
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/kdf_legacy_kmgmt.c
providers/implementations/keymgmt/rsa_kmgmt.c
test/evp_pkey_provided_test.c