Skip to content

Commit 384471c

Browse files
committed
Fix test_MakeCertWith0Ser: remove keyCertSign from non-CA certificate test
1 parent 7bafa04 commit 384471c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/api.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19903,9 +19903,8 @@ static int test_MakeCertWith0Ser(void)
1990319903
cert.isCA = 0;
1990419904
cert.sigType = CTC_SHA256wECDSA;
1990519905

19906-
#ifdef WOLFSSL_CERT_EXT
19907-
cert.keyUsage |= KEYUSE_KEY_CERT_SIGN;
19908-
#endif
19906+
/* Note: KEYUSE_KEY_CERT_SIGN is not set here because it's only valid for
19907+
* CA certificates. This test creates a non-CA certificate (isCA=0). */
1990919908

1991019909
/* set serial number to 0 */
1991119910
cert.serialSz = 1;

0 commit comments

Comments
 (0)