Add flag guard for IGNORE_NAME_CONSTRAINTS

This commit is contained in:
Colton Willey
2024-05-29 22:41:36 -07:00
parent a17677c946
commit f13a82610c

View File

@ -41292,7 +41292,8 @@ static int test_wolfSSL_X509_max_altnames(void)
static int test_wolfSSL_X509_max_name_constraints(void)
{
EXPECT_DECLS;
#if !defined(NO_FILESYSTEM) && !defined(NO_CERTS) && !defined(NO_RSA)
#if !defined(NO_FILESYSTEM) && !defined(NO_CERTS) && !defined(NO_RSA) && \
!defined(IGNORE_NAME_CONSTRAINTS)
/* Only test if max name constraints has not been modified */
#if WOLFSSL_MAX_NAME_CONSTRAINTS == 128