Skip to content

Commit 43fe8db

Browse files
committed
Fix from review
1 parent 208c9fd commit 43fe8db

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/api.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24728,6 +24728,14 @@ static int test_wolfSSL_X509_print(void)
2472824728
/* Will print IP address subject alt name. */
2472924729
ExpectIntEQ(BIO_get_mem_data(bio, NULL), 3350);
2473024730
#endif
24731+
#elif defined(IGNORE_NAME_CONSTRAINTS)
24732+
/* DecodeGeneralName skips iPAddress entries when name constraints
24733+
* are disabled, so the IP SAN never reaches the print path. */
24734+
#if defined(NO_ASN_TIME)
24735+
ExpectIntEQ(BIO_get_mem_data(bio, NULL), 3213);
24736+
#else
24737+
ExpectIntEQ(BIO_get_mem_data(bio, NULL), 3328);
24738+
#endif
2473124739
#elif defined(NO_ASN_TIME)
2473224740
/* With NO_ASN_TIME defined, X509_print skips printing Validity.
2473324741
* iPAddress SAN now always parsed; prints as

0 commit comments

Comments
 (0)