Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get rid of some code with NO_OLD_TLS #7467

Merged
merged 1 commit into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -8957,6 +8957,7 @@ int wolfSSL_DTLS_SetCookieSecret(WOLFSSL* ssl,
return m;
}

#ifndef NO_OLD_TLS
#ifdef WOLFSSL_ALLOW_SSLV3
WOLFSSL_METHOD* wolfSSLv3_method(void)
{
Expand All @@ -8978,6 +8979,7 @@ int wolfSSL_DTLS_SetCookieSecret(WOLFSSL* ssl,
return m;
}
#endif
#endif
#endif /* OPENSSL_EXTRA || WOLFSSL_EITHER_SIDE */

/* client only parts */
Expand Down
2 changes: 2 additions & 0 deletions tests/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -64474,6 +64474,7 @@ static int test_wolfSSL_CTX_get_min_proto_version(void)
wolfSSL_CTX_free(ctx);
ctx = NULL;

#ifndef NO_OLD_TLS
#ifdef WOLFSSL_ALLOW_TLSV10
ExpectNotNull(ctx = wolfSSL_CTX_new(wolfTLSv1_method()));
#else
Expand All @@ -64488,6 +64489,7 @@ static int test_wolfSSL_CTX_get_min_proto_version(void)
#endif
wolfSSL_CTX_free(ctx);
ctx = NULL;
#endif

ExpectNotNull(ctx = wolfSSL_CTX_new(wolfSSLv23_method()));
ExpectIntEQ(wolfSSL_CTX_set_min_proto_version(ctx, TLS1_1_VERSION),
Expand Down