From 00c3f5be2ef637aa49b60ef922b28d40c0799f92 Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Tue, 20 Feb 2024 21:50:03 -0500 Subject: [PATCH] A fixup --- wolfcrypt/test/test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index 829e260d0..b51b1ad93 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -18070,6 +18070,7 @@ static wc_test_ret_t rsa_certgen_test(RsaKey* key, RsaKey* keypub, WC_RNG* rng, ERROR_OUT(WC_TEST_RET_ENC_ERRNO, exit_rsa); #endif /* USE_CERT_BUFFERS */ + #if defined(WOLFSSL_ALT_NAMES) #if !defined(NO_FILESYSTEM) && !defined(USE_CERT_BUFFERS_1024) && \ !defined(USE_CERT_BUFFERS_2048) && !defined(NO_ASN) ret = wc_SetAltNames(myCert, rsaCaCertFile); @@ -18091,7 +18092,8 @@ static wc_test_ret_t rsa_certgen_test(RsaKey* key, RsaKey* keypub, WC_RNG* rng, if (ret < 0) ERROR_OUT(WC_TEST_RET_ENC_EC(ret), exit_rsa); #endif -#endif /* WOLFSSL_ALT_NAMES */ + #endif /* WOLFSSL_ALT_NAMES */ +#endif /* WOLFSSL_ALT_NAMES || HAVE_PKCS7 */ /* Get CA Key */ #ifdef USE_CERT_BUFFERS_1024