diff options
author | Richard Levitte <levitte@openssl.org> | 2015-01-29 01:54:09 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2015-01-29 01:54:09 +0100 |
commit | c6ef15c494e49ecc505156c8063474b20e29ef6a (patch) | |
tree | accf01dca71f3c74a0c60aa879645cae8d99c2e4 /engines/ccgost | |
parent | 7317192c645f24dfdb0c8340b871bc045454f8f4 (diff) | |
download | openssl-c6ef15c494e49ecc505156c8063474b20e29ef6a.tar.gz |
clang on Linux x86_64 complains about unreachable code.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'engines/ccgost')
-rw-r--r-- | engines/ccgost/gost_ameth.c | 2 | ||||
-rw-r--r-- | engines/ccgost/gost_pmeth.c | 6 |
2 files changed, 0 insertions, 8 deletions
diff --git a/engines/ccgost/gost_ameth.c b/engines/ccgost/gost_ameth.c index fc4d2e2c68..ad8480daad 100644 --- a/engines/ccgost/gost_ameth.c +++ b/engines/ccgost/gost_ameth.c @@ -189,7 +189,6 @@ BIGNUM *gost_get0_priv_key(const EVP_PKEY *pkey) if (!dsa->priv_key) return NULL; return dsa->priv_key; - break; } case NID_id_GostR3410_2001: { @@ -201,7 +200,6 @@ BIGNUM *gost_get0_priv_key(const EVP_PKEY *pkey) if (!(priv = EC_KEY_get0_private_key(ec))) return NULL; return (BIGNUM *)priv; - break; } } return NULL; diff --git a/engines/ccgost/gost_pmeth.c b/engines/ccgost/gost_pmeth.c index eb63d425c0..f1220e8ccd 100644 --- a/engines/ccgost/gost_pmeth.c +++ b/engines/ccgost/gost_pmeth.c @@ -86,7 +86,6 @@ static int pkey_gost_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) pctx->md = (EVP_MD *)p2; return 1; } - break; case EVP_PKEY_CTRL_GET_MD: *(const EVP_MD **)p2 = pctx->md; @@ -150,7 +149,6 @@ static int pkey_gost_ctrl94_str(EVP_PKEY_CTX *ctx, break; default: return 0; - break; } } else if ((strlen(value) == 2) && (toupper((unsigned char)value[0]) == 'X')) { @@ -166,7 +164,6 @@ static int pkey_gost_ctrl94_str(EVP_PKEY_CTX *ctx, break; default: return 0; - break; } } else { R3410_params *p = R3410_paramset; @@ -214,7 +211,6 @@ static int pkey_gost_ctrl01_str(EVP_PKEY_CTX *ctx, break; default: return 0; - break; } } else if ((strlen(value) == 2) && (toupper((unsigned char)value[0]) == 'X')) { @@ -227,7 +223,6 @@ static int pkey_gost_ctrl01_str(EVP_PKEY_CTX *ctx, break; default: return 0; - break; } } else { R3410_2001_params *p = R3410_2001_paramset; @@ -454,7 +449,6 @@ static int pkey_gost_mac_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) data->md = (EVP_MD *)p2; return 1; } - break; case EVP_PKEY_CTRL_GET_MD: *(const EVP_MD **)p2 = data->md; |