diff options
author | Vitaly Chikunov <vt@altlinux.org> | 2021-12-03 12:04:06 +0300 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@users.noreply.github.com> | 2021-12-11 19:45:14 +0300 |
commit | b5613a2844470fd983cc3681633681a02ef6b44e (patch) | |
tree | 8ab192ecccc606530f3021d3f1061fc53ae36670 /gost_keyexpimp.c | |
parent | 8c81c6fde1485fc27f88b4ffbcd8217a294c2215 (diff) | |
download | gost-engine-b5613a2844470fd983cc3681633681a02ef6b44e.zip gost-engine-b5613a2844470fd983cc3681633681a02ef6b44e.tar.gz gost-engine-b5613a2844470fd983cc3681633681a02ef6b44e.tar.bz2 |
MSVC: Fix unreachable code warning
Errors are like this:
gost_pmeth.c(188): warning C4702: unreachable code
gost_grasshopper_cipher.c(909): warning C4702: unreachable code
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
Diffstat (limited to 'gost_keyexpimp.c')
-rw-r--r-- | gost_keyexpimp.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gost_keyexpimp.c b/gost_keyexpimp.c index e4af418..eb10331 100644 --- a/gost_keyexpimp.c +++ b/gost_keyexpimp.c @@ -364,7 +364,6 @@ static int magma_wrap_do(EVP_CIPHER_CTX *ctx, unsigned char *out, return gost_kimp15(cctx->wrapped, cctx->wrap_count, NID_magma_ctr, cctx->key+GOSTKEYLEN, NID_magma_mac, cctx->key, cctx->iv, 4, out) > 0 ? GOSTKEYLEN : 0; } - return 1; } static int kuznyechik_wrap_init(EVP_CIPHER_CTX *ctx, const unsigned char *key, |