Ensure EVP_PKEY_get_raw_[private|public]_key work with provider keys
authorMatt Caswell <matt@openssl.org>
Fri, 24 Apr 2020 15:19:25 +0000 (16:19 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 4 May 2020 08:30:55 +0000 (09:30 +0100)
commitc19d89785075393d27287c90086fa2aeaa842e62
treee0b8455e6e078946ef6b0853f755f01df41a1ceb
parentf3336f40508dfd4821f0048b149ffb45f8f08875
Ensure EVP_PKEY_get_raw_[private|public]_key work with provider keys

If the key is a provider key then we should export it from the provider.

Fixes #11627

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