Skip to content

Commit d1312c8

Browse files
authored
Merge pull request #8792 from rlm2002/coverity-src
Coverity: remove dead code issue in ssl.c
2 parents 2ecd4d7 + 5352e10 commit d1312c8

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/ssl.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13545,10 +13545,12 @@ static int Set_CTX_max_proto_version(WOLFSSL_CTX* ctx, int ver)
1354513545
}
1354613546

1354713547
switch (ver) {
13548+
#ifndef NO_TLS
13549+
#ifndef NO_OLD_TLS
1354813550
case SSL2_VERSION:
1354913551
WOLFSSL_MSG("wolfSSL does not support SSLv2");
1355013552
return WOLFSSL_FAILURE;
13551-
#ifndef NO_TLS
13553+
#endif
1355213554
case SSL3_VERSION:
1355313555
wolfSSL_CTX_set_options(ctx, WOLFSSL_OP_NO_TLSv1);
1355413556
FALL_THROUGH;
@@ -13603,9 +13605,6 @@ static int Set_CTX_max_proto_version(WOLFSSL_CTX* ctx, int ver)
1360313605
}
1360413606
/* Update the method */
1360513607
switch (ver) {
13606-
case SSL2_VERSION:
13607-
WOLFSSL_MSG("wolfSSL does not support SSLv2");
13608-
return WOLFSSL_FAILURE;
1360913608
#ifndef NO_TLS
1361013609
case SSL3_VERSION:
1361113610
ctx->method->version.minor = SSLv3_MINOR;

0 commit comments

Comments
 (0)