Modify max altname test to run if limit has been lowered

This commit is contained in:
Colton Willey
2024-07-18 11:28:11 -07:00
parent 7434092a3a
commit a82b76978e

View File

@@ -51497,7 +51497,7 @@ static int test_wolfSSL_X509_max_altnames(void)
#if !defined(NO_FILESYSTEM) && !defined(NO_CERTS) && !defined(NO_RSA)
/* Only test if max alt names has not been modified */
#if WOLFSSL_MAX_ALT_NAMES == 1024
#if WOLFSSL_MAX_ALT_NAMES <= 1024
WOLFSSL_CTX* ctx = NULL;
/* File contains a certificate encoded with 130 subject alternative names */