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.
pull/8819/head
Sebastian Carpenter 2025-05-29 15:19:33 -06:00
parent 7898823d42
commit a29d12fd3f
1 changed files with 2 additions and 1 deletions

View File

@ -45925,7 +45925,8 @@ static int test_MakeCertWith0Ser(void)
wc_InitDecodedCert(&decodedCert, der, (word32)derSize, NULL);
#if !defined(WOLFSSL_NO_ASN_STRICT) && !defined(WOLFSSL_PYTHON)
#if !defined(WOLFSSL_NO_ASN_STRICT) && !defined(WOLFSSL_PYTHON) && \
!defined(WOLFSSL_ASN_ALLOW_0_SERIAL)
ExpectIntEQ(wc_ParseCert(&decodedCert, CERT_TYPE, NO_VERIFY, NULL),
WC_NO_ERR_TRACE(ASN_PARSE_E));
#else