Skip to content

Commit 06d7d7d

Browse files
committed
Fix for old tests
1 parent 6c6c881 commit 06d7d7d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/api.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26830,7 +26830,10 @@ static int test_MakeCertWith0Ser(void)
2683026830
CTC_NAME_SIZE);
2683126831

2683226832
cert.selfSigned = 1;
26833-
cert.isCA = 1;
26833+
/* Changed from isCA=1 to isCA=0 to test non-root certificate.
26834+
* Serial 0 is now allowed for root CAs (selfSigned && isCA),
26835+
* but should still be rejected for non-CA certificates. */
26836+
cert.isCA = 0;
2683426837
cert.sigType = CTC_SHA256wECDSA;
2683526838

2683626839
#ifdef WOLFSSL_CERT_EXT

0 commit comments

Comments
 (0)