From b2088dd3c7c7a7d8f88ea624fd931b1808a7cfc3 Mon Sep 17 00:00:00 2001 From: Vitaly Chikunov Date: Tue, 15 Oct 2019 19:28:40 +0300 Subject: [PATCH] gost_ec_keyx: Remove redundant code This `if' statement is redundant since ce40d60 ("Bugfix.") get_gost_engine_param() have no side effects and `param' is set to `gost_cipher_list' only if already equal to `gost_cipher_list'. --- gost_ec_keyx.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gost_ec_keyx.c b/gost_ec_keyx.c index 963cd8a..2053d0d 100644 --- a/gost_ec_keyx.c +++ b/gost_ec_keyx.c @@ -286,10 +286,6 @@ static int pkey_GOST_ECcp_encrypt(EVP_PKEY_CTX *pctx, unsigned char *out, } } } - if (!get_gost_engine_param(GOST_PARAM_CRYPT_PARAMS) - && param == gost_cipher_list) { - param = gost_cipher_list; - } if (out) { int dgst_nid = NID_undef; EVP_PKEY_get_default_digest_nid(pubk, &dgst_nid); -- 2.39.2