test_wolfSSL_OBJ with NO_DES3, NO_RSA

This commit is contained in:
Takashi Kojo
2018-07-14 12:14:38 +09:00
committed by Go Hosohara
parent 7767d802b7
commit 7af43b6cf0

View File

@ -18513,20 +18513,23 @@ static void test_wolfSSL_OBJ(void)
int nid; int nid;
int i, j; int i, j;
const char *f[] = { const char *f[] = {
#ifndef NO_RSA
"./certs/ca-cert.der", "./certs/ca-cert.der",
#endif
#ifdef HAVE_ECC #ifdef HAVE_ECC
"./certs/ca-ecc-cert.der", "./certs/ca-ecc-cert.der",
"./certs/ca-ecc384-cert.der", "./certs/ca-ecc384-cert.der",
#endif #endif
NULL}; NULL};
#ifndef NO_DES3
PKCS12 *p12; PKCS12 *p12;
int boolRet; int boolRet;
EVP_PKEY *pkey = NULL; EVP_PKEY *pkey = NULL;
const char *p12_f[] = { const char *p12_f[] = {
#if !defined(NO_DES3) && !defined(NO_RSA)
"./certs/test-servercert.p12", "./certs/test-servercert.p12",
#endif
NULL}; NULL};
#endif /* !NO_DES3 */
printf(testingFmt, "wolfSSL_OBJ()"); 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++) for (i = 0; p12_f[i] != NULL; i++)
{ {
AssertTrue((fp = XFOPEN(p12_f[i], "r")) != XBADFILE); AssertTrue((fp = XFOPEN(p12_f[i], "r")) != XBADFILE);
@ -18578,7 +18580,6 @@ static void test_wolfSSL_OBJ(void)
printf("nid=%d\n", nid); printf("nid=%d\n", nid);
} }
} }
#endif /* !NO_DES3 */
printf(resultFmt, passed); printf(resultFmt, passed);
#endif #endif