mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Get rid of some code with NO_OLD_TLS
This commit is contained in:
@ -8957,6 +8957,7 @@ int wolfSSL_DTLS_SetCookieSecret(WOLFSSL* ssl,
|
|||||||
return m;
|
return m;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NO_OLD_TLS
|
||||||
#ifdef WOLFSSL_ALLOW_SSLV3
|
#ifdef WOLFSSL_ALLOW_SSLV3
|
||||||
WOLFSSL_METHOD* wolfSSLv3_method(void)
|
WOLFSSL_METHOD* wolfSSLv3_method(void)
|
||||||
{
|
{
|
||||||
@ -8978,6 +8979,7 @@ int wolfSSL_DTLS_SetCookieSecret(WOLFSSL* ssl,
|
|||||||
return m;
|
return m;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#endif /* OPENSSL_EXTRA || WOLFSSL_EITHER_SIDE */
|
#endif /* OPENSSL_EXTRA || WOLFSSL_EITHER_SIDE */
|
||||||
|
|
||||||
/* client only parts */
|
/* client only parts */
|
||||||
|
@ -64474,6 +64474,7 @@ static int test_wolfSSL_CTX_get_min_proto_version(void)
|
|||||||
wolfSSL_CTX_free(ctx);
|
wolfSSL_CTX_free(ctx);
|
||||||
ctx = NULL;
|
ctx = NULL;
|
||||||
|
|
||||||
|
#ifndef NO_OLD_TLS
|
||||||
#ifdef WOLFSSL_ALLOW_TLSV10
|
#ifdef WOLFSSL_ALLOW_TLSV10
|
||||||
ExpectNotNull(ctx = wolfSSL_CTX_new(wolfTLSv1_method()));
|
ExpectNotNull(ctx = wolfSSL_CTX_new(wolfTLSv1_method()));
|
||||||
#else
|
#else
|
||||||
@ -64488,6 +64489,7 @@ static int test_wolfSSL_CTX_get_min_proto_version(void)
|
|||||||
#endif
|
#endif
|
||||||
wolfSSL_CTX_free(ctx);
|
wolfSSL_CTX_free(ctx);
|
||||||
ctx = NULL;
|
ctx = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
ExpectNotNull(ctx = wolfSSL_CTX_new(wolfSSLv23_method()));
|
ExpectNotNull(ctx = wolfSSL_CTX_new(wolfSSLv23_method()));
|
||||||
ExpectIntEQ(wolfSSL_CTX_set_min_proto_version(ctx, TLS1_1_VERSION),
|
ExpectIntEQ(wolfSSL_CTX_set_min_proto_version(ctx, TLS1_1_VERSION),
|
||||||
|
Reference in New Issue
Block a user