summaryrefslogtreecommitdiffstats
path: root/providers/implementations
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-04-24 16:20:27 +0100
committerMatt Caswell <matt@openssl.org>2020-05-04 09:30:55 +0100
commitd4fe478df04073abf0657506b58ed3f67443fcaf (patch)
tree6812293e701527b8f214f4a4439f766954c62833 /providers/implementations
parentc19d89785075393d27287c90086fa2aeaa842e62 (diff)
Don't export ECX key data twice
We had a redundant couple of lines where we exported key data twice. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/11635)
Diffstat (limited to 'providers/implementations')
-rw-r--r--providers/implementations/keymgmt/ecx_kmgmt.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/providers/implementations/keymgmt/ecx_kmgmt.c b/providers/implementations/keymgmt/ecx_kmgmt.c
index 278e548832..d3be2865b9 100644
--- a/providers/implementations/keymgmt/ecx_kmgmt.c
+++ b/providers/implementations/keymgmt/ecx_kmgmt.c
@@ -161,10 +161,6 @@ static int ecx_export(void *keydata, int selection, OSSL_CALLBACK *param_cb,
&& !key_to_params(key, tmpl, NULL))
goto err;
- if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0
- && !key_to_params(key, tmpl, NULL))
- goto err;
-
params = OSSL_PARAM_BLD_to_param(tmpl);
if (params == NULL)
goto err;