Skip to content

Commit 05d86c8

Browse files
committed
Fix test_MakeCertWith0Ser: remove keyCertSign from non-CA certificate test
1 parent f7ba9a9 commit 05d86c8

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
@@ -26836,9 +26836,8 @@ static int test_MakeCertWith0Ser(void)
2683626836
cert.isCA = 0;
2683726837
cert.sigType = CTC_SHA256wECDSA;
2683826838

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

2684326842
/* set serial number to 0 */
2684426843
cert.serialSz = 1;

0 commit comments

Comments
 (0)