From 6c9bc258d2e9e7b500236a1c696da1f384f0b907 Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Fri, 16 Apr 2021 16:22:03 +0200 Subject: Add type_name member to provided methods and use it Fixes #14701 Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/14898) --- crypto/evp/pmeth_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/evp/pmeth_lib.c') diff --git a/crypto/evp/pmeth_lib.c b/crypto/evp/pmeth_lib.c index f00394e081..d09b39b7d5 100644 --- a/crypto/evp/pmeth_lib.c +++ b/crypto/evp/pmeth_lib.c @@ -192,7 +192,7 @@ static EVP_PKEY_CTX *int_ctx_new(OSSL_LIB_CTX *libctx, /* If we have an engine, something went wrong somewhere... */ if (!ossl_assert(e == NULL)) return NULL; - keytype = evp_first_name(pkey->keymgmt->prov, pkey->keymgmt->name_id); + keytype = EVP_KEYMGMT_name(pkey->keymgmt); goto common; } -- cgit v1.2.3