diff --git a/tests/api.c b/tests/api.c index 47e8b695dc..c90baee366 100644 --- a/tests/api.c +++ b/tests/api.c @@ -26643,6 +26643,14 @@ static int test_wolfSSL_X509_print(void) /* Will print IP address subject alt name. */ ExpectIntEQ(BIO_get_mem_data(bio, NULL), 3350); #endif +#elif defined(IGNORE_NAME_CONSTRAINTS) + /* DecodeGeneralName skips iPAddress entries when name constraints + * are disabled, so the IP SAN never reaches the print path. */ + #if defined(NO_ASN_TIME) + ExpectIntEQ(BIO_get_mem_data(bio, NULL), 3213); + #else + ExpectIntEQ(BIO_get_mem_data(bio, NULL), 3328); + #endif #elif defined(NO_ASN_TIME) /* With NO_ASN_TIME defined, X509_print skips printing Validity. * iPAddress SAN now always parsed; prints as