From c09e55c749e76ea18723770ce029d86d1b8b4198 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Mon, 12 Feb 2018 09:59:35 -0700 Subject: [PATCH] add check for having ECC enabled when testing with ECC certificate --- tests/api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/api.c b/tests/api.c index 90a86fcf6..9848dbd0a 100644 --- a/tests/api.c +++ b/tests/api.c @@ -2651,7 +2651,7 @@ static void test_wolfSSL_PKCS12(void) PKCS12_free(pkcs12_2); sk_X509_free(ca); - +#ifdef HAVE_ECC /* test order of parsing */ f = fopen(order, "rb"); AssertNotNull(f); @@ -2698,6 +2698,7 @@ static void test_wolfSSL_PKCS12(void) BIO_free(bio); PKCS12_free(pkcs12); sk_X509_free(ca); +#endif /* HAVE_ECC */ printf(resultFmt, passed); #endif /* OPENSSL_EXTRA */