EVP: Add evp_pkey_upgrade_to_provider(), for EVP_PKEY upgrades
authorRichard Levitte <levitte@openssl.org>
Thu, 20 Feb 2020 21:55:41 +0000 (22:55 +0100)
committerRichard Levitte <levitte@openssl.org>
Sat, 29 Feb 2020 04:39:43 +0000 (05:39 +0100)
commitbadf51c869d687f934e817f3bb4653acec0088ca
tree4b60c89e0aebf5341961874a25cde72c8d8fdaf9
parent3c6ed9555c7735c24d5f59c8b4ab7b9c4d807c77
EVP: Add evp_pkey_upgrade_to_provider(), for EVP_PKEY upgrades

This function "upgrades" a key from a legacy key container to a
provider side key container.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11148)
crypto/evp/p_lib.c
include/crypto/evp.h
test/keymgmt_internal_test.c