]> granicus.if.org Git - openssl/commit
evp_keymgmt_export_to_provider(): adjust OSSL_PARAM array for transfer
authorRichard Levitte <levitte@openssl.org>
Wed, 16 Oct 2019 22:32:20 +0000 (00:32 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 17 Oct 2019 16:07:45 +0000 (18:07 +0200)
commit651101e18d66b2ae89851ce8906299e9d2a871e0
treeacee0bbb71d49390a74461b58204dd899ef6b08e
parent5a02d13d3e274748c695bfe19238f885489e021e
evp_keymgmt_export_to_provider(): adjust OSSL_PARAM array for transfer

It may be that the OSSL_PARAM array we used for getting parameter
values for a key had a few too many entries.  These are detected by
their return_size == 0.  Before making second export call, we prune
away these items so we only ask for parameters that exist.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10190)
crypto/evp/keymgmt_lib.c