Skip to content

Commit 7647da4

Browse files
committed
tests/api.c: gate test_ParseSerial0FixtureMatrix on (fixtures are RSA)
1 parent bb59678 commit 7647da4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/api.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23790,10 +23790,12 @@ static int test_PathLenNoKeyUsage(void)
2379023790
static int test_ParseSerial0FixtureMatrix(void)
2379123791
{
2379223792
EXPECT_DECLS;
23793-
#if !defined(NO_CERTS) && !defined(NO_FILESYSTEM) && \
23793+
#if !defined(NO_CERTS) && !defined(NO_FILESYSTEM) && !defined(NO_RSA) && \
2379423794
defined(WOLFSSL_PEM_TO_DER) && !defined(WOLFSSL_NO_PEM) && \
2379523795
!defined(WOLFSSL_NO_ASN_STRICT) && !defined(WOLFSSL_PYTHON) && \
2379623796
!defined(WOLFSSL_ASN_ALLOW_0_SERIAL)
23797+
/* Fixture certs are RSA-2048; NO_RSA builds can't parse them. Mirrors
23798+
* the gate on the sibling test_SerialNumber0_RootCA. */
2379723799
/* Each case asserts a policy outcome (accept vs reject), not a specific
2379823800
* error code. wc_ParseCert can fail via several distinct codes
2379923801
* (ASN_PARSE_E, ASN_UNKNOWN_OID_E, etc.) depending on which

0 commit comments

Comments
 (0)