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