From 7af43b6cf06ef7cd78711e5bba3a4e975a2071a0 Mon Sep 17 00:00:00 2001 From: Takashi Kojo Date: Sat, 14 Jul 2018 12:14:38 +0900 Subject: [PATCH] test_wolfSSL_OBJ with NO_DES3, NO_RSA --- tests/api.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/api.c b/tests/api.c index 4de32122d..4b0b90776 100644 --- a/tests/api.c +++ b/tests/api.c @@ -18513,20 +18513,23 @@ static void test_wolfSSL_OBJ(void) int nid; int i, j; const char *f[] = { + #ifndef NO_RSA "./certs/ca-cert.der", + #endif #ifdef HAVE_ECC "./certs/ca-ecc-cert.der", "./certs/ca-ecc384-cert.der", #endif NULL}; -#ifndef NO_DES3 + PKCS12 *p12; int boolRet; EVP_PKEY *pkey = NULL; const char *p12_f[] = { + #if !defined(NO_DES3) && !defined(NO_RSA) "./certs/test-servercert.p12", + #endif NULL}; -#endif /* !NO_DES3 */ printf(testingFmt, "wolfSSL_OBJ()"); @@ -18560,7 +18563,6 @@ static void test_wolfSSL_OBJ(void) } } -#ifndef NO_DES3 for (i = 0; p12_f[i] != NULL; i++) { AssertTrue((fp = XFOPEN(p12_f[i], "r")) != XBADFILE); @@ -18578,7 +18580,6 @@ static void test_wolfSSL_OBJ(void) printf("nid=%d\n", nid); } } -#endif /* !NO_DES3 */ printf(resultFmt, passed); #endif