mirror of https://github.com/wolfSSL/wolfssl.git
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
parent
7898823d42
commit
a29d12fd3f
|
@ -45925,7 +45925,8 @@ static int test_MakeCertWith0Ser(void)
|
||||||
|
|
||||||
wc_InitDecodedCert(&decodedCert, der, (word32)derSize, NULL);
|
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),
|
ExpectIntEQ(wc_ParseCert(&decodedCert, CERT_TYPE, NO_VERIFY, NULL),
|
||||||
WC_NO_ERR_TRACE(ASN_PARSE_E));
|
WC_NO_ERR_TRACE(ASN_PARSE_E));
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue