skip d2i_X509_CRL_fp test. Done locally.

This commit is contained in:
Takashi Kojo
2018-05-04 10:18:33 +09:00
parent 2e4884b6f9
commit 5d4c0c582e

View File

@@ -18620,10 +18620,12 @@ static void test_wolfSSL_X509_CRL(void)
"" ""
}; };
#ifdef HAVE_TEST_d2i_X509_CRL_fp
char der[][100] = { char der[][100] = {
"./certs/crl/crl.der", "./certs/crl/crl.der",
"./certs/crl/crl2.der", "./certs/crl/crl2.der",
""}; ""};
#endif
FILE * fp; FILE * fp;
int i; int i;
@@ -18644,6 +18646,7 @@ static void test_wolfSSL_X509_CRL(void)
XFCLOSE(fp); XFCLOSE(fp);
} }
#ifdef HAVE_TEST_d2i_X509_CRL_fp
for(i = 0; der[i][0] != '\0'; i++){ for(i = 0; der[i][0] != '\0'; i++){
AssertNotNull(fp = XFOPEN(der[i], "rb")); AssertNotNull(fp = XFOPEN(der[i], "rb"));
AssertNotNull(crl = (X509_CRL *)d2i_X509_CRL_fp((X509_CRL **)NULL, fp)); AssertNotNull(crl = (X509_CRL *)d2i_X509_CRL_fp((X509_CRL **)NULL, fp));
@@ -18656,6 +18659,7 @@ static void test_wolfSSL_X509_CRL(void)
X509_CRL_free(crl); X509_CRL_free(crl);
XFCLOSE(fp); XFCLOSE(fp);
} }
#endif
printf(resultFmt, passed); printf(resultFmt, passed);
#endif #endif