Skip to content

Commit ce4b248

Browse files
committed
tests/api.c: gate test_ParseSerial0FixtureMatrix on (fixtures are RSA)
1 parent 4822c69 commit ce4b248

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
@@ -22141,10 +22141,12 @@ static int test_PathLenNoKeyUsage(void)
2214122141
static int test_ParseSerial0FixtureMatrix(void)
2214222142
{
2214322143
EXPECT_DECLS;
22144-
#if !defined(NO_CERTS) && !defined(NO_FILESYSTEM) && \
22144+
#if !defined(NO_CERTS) && !defined(NO_FILESYSTEM) && !defined(NO_RSA) && \
2214522145
defined(WOLFSSL_PEM_TO_DER) && !defined(WOLFSSL_NO_PEM) && \
2214622146
!defined(WOLFSSL_NO_ASN_STRICT) && !defined(WOLFSSL_PYTHON) && \
2214722147
!defined(WOLFSSL_ASN_ALLOW_0_SERIAL)
22148+
/* Fixture certs are RSA-2048; NO_RSA builds can't parse them. Mirrors
22149+
* the gate on the sibling test_SerialNumber0_RootCA. */
2214822150
/* Each case asserts a policy outcome (accept vs reject), not a specific
2214922151
* error code. wc_ParseCert can fail via several distinct codes
2215022152
* (ASN_PARSE_E, ASN_UNKNOWN_OID_E, etc.) depending on which

0 commit comments

Comments
 (0)