We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c6c881 commit 06d7d7dCopy full SHA for 06d7d7d
1 file changed
tests/api.c
@@ -26830,7 +26830,10 @@ static int test_MakeCertWith0Ser(void)
26830
CTC_NAME_SIZE);
26831
26832
cert.selfSigned = 1;
26833
- cert.isCA = 1;
+ /* 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;
26837
cert.sigType = CTC_SHA256wECDSA;
26838
26839
#ifdef WOLFSSL_CERT_EXT
0 commit comments