From: Vitaly Chikunov Date: Tue, 15 Oct 2019 16:28:40 +0000 (+0300) Subject: gost_ec_keyx: Remove redundant code X-Git-Tag: v3.0.0~263^2~2^2 X-Git-Url: http://www.wagner.pp.ru/gitweb/?a=commitdiff_plain;ds=sidebyside;h=b2088dd3c7c7a7d8f88ea624fd931b1808a7cfc3;p=openssl-gost%2Fengine.git 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'. --- 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);