diff --git a/tests/api/test_ossl_x509.c b/tests/api/test_ossl_x509.c index 2f85759a046..2dd57f13db2 100644 --- a/tests/api/test_ossl_x509.c +++ b/tests/api/test_ossl_x509.c @@ -539,6 +539,7 @@ int test_wolfSSL_X509_check_email(void) #if defined(OPENSSL_EXTRA) && defined(WOLFSSL_CERT_GEN) && \ defined(WOLFSSL_ALT_NAMES) && defined(HAVE_ECC) && \ + !defined(NO_ASN_TIME) && !defined(USER_TIME) && \ defined(HAVE_ECC_SIGN) && !defined(WC_NO_RNG) && !defined(NO_SHA256) /* Make a self-signed certificate whose subject emailAddress is subjEmail * (omitted when NULL) and whose SubjectAltName holds the GeneralNames in @@ -597,6 +598,7 @@ int test_wolfSSL_X509_check_email_san(void) EXPECT_DECLS; #if defined(OPENSSL_EXTRA) && defined(WOLFSSL_CERT_GEN) && \ defined(WOLFSSL_ALT_NAMES) && defined(HAVE_ECC) && \ + !defined(NO_ASN_TIME) && !defined(USER_TIME) && \ defined(HAVE_ECC_SIGN) && !defined(WC_NO_RNG) && !defined(NO_SHA256) static const char target[] = "a@target.example"; static const char nulTarget[] = "a@target.example\0junk";