Skip to content

Commit d0fd0a2

Browse files
committed
Fixup some gating in the tests.
Found with: ./configure --enable-wolfclu --enable-asn=template 'CFLAGS=-DNO_ASN_TIME -DWOLFSSL_CUSTOM_OID -DHAVE_OID_ENCODING'
1 parent 14830d0 commit d0fd0a2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

wolfcrypt/test/test.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15710,7 +15710,8 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t memory_test(void)
1571015710
#ifdef WOLFSSL_CERT_GEN
1571115711
static const char* rsaCaCertFile = CERT_ROOT "ca-cert.pem";
1571215712
#endif
15713-
#if defined(WOLFSSL_ALT_NAMES) || defined(HAVE_PKCS7)
15713+
#if (defined(WOLFSSL_ALT_NAMES) || defined(HAVE_PKCS7)) \
15714+
&& !defined(NO_ASN_TIME)
1571415715
static const char* rsaCaCertDerFile = CERT_ROOT "ca-cert.der";
1571515716
#endif
1571615717
#ifdef HAVE_PKCS7
@@ -18050,8 +18051,7 @@ static wc_test_ret_t rsa_certgen_test(RsaKey* key, RsaKey* keypub, WC_RNG* rng,
1805018051
if (ret < 0) {
1805118052
ERROR_OUT(WC_TEST_RET_ENC_EC(ret), exit_rsa);
1805218053
}
18053-
18054-
#ifdef WOLFSSL_ALT_NAMES
18054+
#if defined(WOLFSSL_ALT_NAMES) || defined(HAVE_PKCS7)
1805518055
/* Get CA Cert for testing */
1805618056
#ifdef USE_CERT_BUFFERS_1024
1805718057
XMEMCPY(tmp, ca_cert_der_1024, sizeof_ca_cert_der_1024);

0 commit comments

Comments
 (0)