Skip to content

Commit dcdbb2b

Browse files
committed
Fix from review
1 parent 06a36d8 commit dcdbb2b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/api/test_tls_ext.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ int test_certificate_authorities_client_hello(void) {
546546
return EXPECT_RESULT();
547547
}
548548

549-
#if defined(HAVE_SNI) && !defined(NO_WOLFSSL_CLIENT)
549+
#if defined(HAVE_SNI) && !defined(NO_WOLFSSL_CLIENT) && !defined(NO_TLS)
550550
/* Walk the TLSX list to find an extension by type. */
551551
static TLSX* test_TLSX_find_ext_sni(TLSX* list, TLSX_Type type)
552552
{
@@ -604,12 +604,12 @@ static word16 test_SNI_GetSize_old(SNI* list)
604604
/* Test that the SNI size calculation returns 0 on overflow instead of
605605
* wrapping around to a small value (integer overflow vulnerability). */
606606
/* closing #if for helper functions */
607-
#endif /* HAVE_SNI && !NO_WOLFSSL_CLIENT */
607+
#endif /* HAVE_SNI && !NO_WOLFSSL_CLIENT && !NO_TLS */
608608

609609
int test_TLSX_SNI_GetSize_overflow(void)
610610
{
611611
EXPECT_DECLS;
612-
#if defined(HAVE_SNI) && !defined(NO_WOLFSSL_CLIENT)
612+
#if defined(HAVE_SNI) && !defined(NO_WOLFSSL_CLIENT) && !defined(NO_TLS)
613613
WOLFSSL_CTX* ctx = NULL;
614614
WOLFSSL* ssl = NULL;
615615
TLSX* sni_ext = NULL;

0 commit comments

Comments
 (0)