Fixup some gating in the tests.

Found with:

./configure --enable-wolfclu --enable-asn=template 'CFLAGS=-DNO_ASN_TIME -DWOLFSSL_CUSTOM_OID -DHAVE_OID_ENCODING'
This commit is contained in:
Anthony Hu
2024-02-08 16:14:43 -05:00
parent 14830d0e09
commit d0fd0a287b

View File

@ -15710,7 +15710,8 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t memory_test(void)
#ifdef WOLFSSL_CERT_GEN
static const char* rsaCaCertFile = CERT_ROOT "ca-cert.pem";
#endif
#if defined(WOLFSSL_ALT_NAMES) || defined(HAVE_PKCS7)
#if (defined(WOLFSSL_ALT_NAMES) || defined(HAVE_PKCS7)) \
&& !defined(NO_ASN_TIME)
static const char* rsaCaCertDerFile = CERT_ROOT "ca-cert.der";
#endif
#ifdef HAVE_PKCS7
@ -18050,8 +18051,7 @@ 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);
}
#ifdef WOLFSSL_ALT_NAMES
#if defined(WOLFSSL_ALT_NAMES) || defined(HAVE_PKCS7)
/* Get CA Cert for testing */
#ifdef USE_CERT_BUFFERS_1024
XMEMCPY(tmp, ca_cert_der_1024, sizeof_ca_cert_der_1024);