EVP: Modify EVP_PKEY_export() to handle legacy EVP_PKEYs
authorRichard Levitte <levitte@openssl.org>
Sat, 15 May 2021 05:45:31 +0000 (07:45 +0200)
committerMatt Caswell <matt@openssl.org>
Thu, 20 May 2021 11:57:36 +0000 (12:57 +0100)
We use a fake EVP_KEYMGMT import function with the newly modified
EVP_PKEY_ASN1_METHOD export_to function to pass the exported
OSSL_PARAM array directly to the EVP_PKEY_export() callback instead of
exporting to an actual provided key and then getting the OSSL_PARAM
array from there, just to throw away that key again.

Fixes #15290

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15293)


No differences found