File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments