From 6689397eec6e6258e240b80de388c53cfa95b073 Mon Sep 17 00:00:00 2001 From: Eric Blankenhorn Date: Thu, 30 Apr 2026 13:07:35 -0500 Subject: [PATCH] Fix from review --- tests/api.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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