From c6ef15c494e49ecc505156c8063474b20e29ef6a Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 29 Jan 2015 01:54:09 +0100 Subject: clang on Linux x86_64 complains about unreachable code. Reviewed-by: Rich Salz --- engines/ccgost/gost_ameth.c | 2 -- engines/ccgost/gost_pmeth.c | 6 ------ 2 files changed, 8 deletions(-) (limited to 'engines/ccgost') 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; -- cgit v1.2.3