]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
gost_ec_keyx: Remove redundant code 181/head
authorVitaly Chikunov <vt@altlinux.org>
Tue, 15 Oct 2019 16:28:40 +0000 (19:28 +0300)
committerVitaly Chikunov <vt@altlinux.org>
Tue, 15 Oct 2019 17:39:46 +0000 (20:39 +0300)
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

index 963cd8ac852b35ff701f6ceff45a31824a986e1f..2053d0d55eab70ac51d42017db58c4c8a71b32e3 100644 (file)
@@ -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);