DESERIALIZER: Fix EVP_PKEY construction by export
authorRichard Levitte <levitte@openssl.org>
Mon, 3 Aug 2020 05:22:37 +0000 (07:22 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 4 Aug 2020 08:19:08 +0000 (10:19 +0200)
commit4c525cb5b6bbc85de592cb7bf623676a914b8dae
treee5a0bb2b32ac8e4fc1ab4e71a58c95e9a05d00f9
parentaff8c0a411824f29687a54a3aa82f7e770faff48
DESERIALIZER: Fix EVP_PKEY construction by export

When the keymgmt provider and the deserializer provider differ,
deserialization uses the deserializer export function instead of the
keymgmt load, with a selection of what parts should be exported.  That
selection was set to OSSL_KEYMGMT_SELECT_ALL_PARAMETERS when it should
have been OSSL_KEYMGMT_SELECT_ALL.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12571)
crypto/serializer/deserializer_pkey.c