Skip to content

Commit 18178a3

Browse files
committed
Fix for old tests
1 parent 56b7a05 commit 18178a3

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
@@ -19897,7 +19897,10 @@ static int test_MakeCertWith0Ser(void)
1989719897
CTC_NAME_SIZE);
1989819898

1989919899
cert.selfSigned = 1;
19900-
cert.isCA = 1;
19900+
/* Changed from isCA=1 to isCA=0 to test non-root certificate.
19901+
* Serial 0 is now allowed for root CAs (selfSigned && isCA),
19902+
* but should still be rejected for non-CA certificates. */
19903+
cert.isCA = 0;
1990119904
cert.sigType = CTC_SHA256wECDSA;
1990219905

1990319906
#ifdef WOLFSSL_CERT_EXT

0 commit comments

Comments
 (0)