Skip to content

Commit 244696b

Browse files
committed
Fix from review
1 parent 16b0662 commit 244696b

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
@@ -26597,6 +26597,14 @@ static int test_wolfSSL_X509_print(void)
2659726597
/* Will print IP address subject alt name. */
2659826598
ExpectIntEQ(BIO_get_mem_data(bio, NULL), 3350);
2659926599
#endif
26600+
#elif defined(IGNORE_NAME_CONSTRAINTS)
26601+
/* DecodeGeneralName skips iPAddress entries when name constraints
26602+
* are disabled, so the IP SAN never reaches the print path. */
26603+
#if defined(NO_ASN_TIME)
26604+
ExpectIntEQ(BIO_get_mem_data(bio, NULL), 3213);
26605+
#else
26606+
ExpectIntEQ(BIO_get_mem_data(bio, NULL), 3328);
26607+
#endif
2660026608
#elif defined(NO_ASN_TIME)
2660126609
/* With NO_ASN_TIME defined, X509_print skips printing Validity.
2660226610
* iPAddress SAN now always parsed; prints as

0 commit comments

Comments
 (0)