summaryrefslogtreecommitdiff
path: root/crypto/evp/keymgmt_lib.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-02-05 10:18:51 +0100
committerRichard Levitte <levitte@openssl.org>2020-03-02 03:27:03 +0100
commit157ded39ee68c1c00814165f79f9b2f000996884 (patch)
treeb839c662e805a748dc9639ed3d77f4ffbcf5a06d /crypto/evp/keymgmt_lib.c
parentccceeb48000d5fae95f38d2c4dd02cdd89ca1ee1 (diff)
downloadopenssl-new-157ded39ee68c1c00814165f79f9b2f000996884.tar.gz
EVP: Adapt EVP_PKEY_missing_parameters() for provider keys
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/11158)
Diffstat (limited to 'crypto/evp/keymgmt_lib.c')
-rw-r--r--crypto/evp/keymgmt_lib.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/evp/keymgmt_lib.c b/crypto/evp/keymgmt_lib.c
index a88d65dc5e..dfa53b849a 100644
--- a/crypto/evp/keymgmt_lib.c
+++ b/crypto/evp/keymgmt_lib.c
@@ -214,3 +214,12 @@ void *evp_keymgmt_util_fromdata(EVP_PKEY *target, EVP_KEYMGMT *keymgmt,
return keydata;
}
+
+int evp_keymgmt_util_has(EVP_PKEY *pk, int selection)
+{
+ /* Check if key is even assigned */
+ if (pk->keymgmt == NULL)
+ return 0;
+
+ return evp_keymgmt_has(pk->keymgmt, pk->keydata, selection);
+}