diff options
author | Vitaly Chikunov <vt@altlinux.org> | 2019-10-15 19:28:40 +0300 |
---|---|---|
committer | Vitaly Chikunov <vt@altlinux.org> | 2019-10-15 20:39:46 +0300 |
commit | b2088dd3c7c7a7d8f88ea624fd931b1808a7cfc3 (patch) | |
tree | 6b59670d4ebcd1ac03fc3e36ce46dc3e0dec27dc /gost_ec_keyx.c | |
parent | a57bcd50c280fd2c48fd28de93dd94023ebdc980 (diff) | |
download | gost-engine-b2088dd3c7c7a7d8f88ea624fd931b1808a7cfc3.zip gost-engine-b2088dd3c7c7a7d8f88ea624fd931b1808a7cfc3.tar.gz gost-engine-b2088dd3c7c7a7d8f88ea624fd931b1808a7cfc3.tar.bz2 |
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'.
Diffstat (limited to 'gost_ec_keyx.c')
-rw-r--r-- | gost_ec_keyx.c | 4 |
1 files changed, 0 insertions, 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); |