We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56b7a05 commit 18178a3Copy full SHA for 18178a3
1 file changed
tests/api.c
@@ -19897,7 +19897,10 @@ static int test_MakeCertWith0Ser(void)
19897
CTC_NAME_SIZE);
19898
19899
cert.selfSigned = 1;
19900
- cert.isCA = 1;
+ /* 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;
19904
cert.sigType = CTC_SHA256wECDSA;
19905
19906
#ifdef WOLFSSL_CERT_EXT
0 commit comments