Skip to content

Commit a29d12f

Browse files
WOLFSSL_ASN_ALLOW_0_SERIAL not handled in make check
test_MakeCertWith0Ser needed an extra #define check for WOLFSSL_ASN_ALLOW_0_SERIAL. Previously, it was validating that a 0 serial should not work -> now it validates that a 0 serial does work.
1 parent 7898823 commit a29d12f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/api.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45925,7 +45925,8 @@ static int test_MakeCertWith0Ser(void)
4592545925

4592645926
wc_InitDecodedCert(&decodedCert, der, (word32)derSize, NULL);
4592745927

45928-
#if !defined(WOLFSSL_NO_ASN_STRICT) && !defined(WOLFSSL_PYTHON)
45928+
#if !defined(WOLFSSL_NO_ASN_STRICT) && !defined(WOLFSSL_PYTHON) && \
45929+
!defined(WOLFSSL_ASN_ALLOW_0_SERIAL)
4592945930
ExpectIntEQ(wc_ParseCert(&decodedCert, CERT_TYPE, NO_VERIFY, NULL),
4593045931
WC_NO_ERR_TRACE(ASN_PARSE_E));
4593145932
#else

0 commit comments

Comments
 (0)