log a message, stating the need of openssl to run this test

This commit is contained in:
Yang Tse
2007-02-19 04:51:47 +00:00
parent f2cd2882a0
commit 75fca27f8e

View File

@@ -332,10 +332,19 @@ int test(char *URL)
return i; return i;
} }
#else /* USE_SSLEAY */ #else /* USE_SSLEAY */
int test(char *URL) int test(char *URL)
{ {
(void)URL; (void)URL;
return CURLE_FAILED_INIT; if (curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) {
fprintf(stderr, "curl_global_init() failed\n");
return TEST_ERR_MAJOR_BAD;
}
fprintf(stderr, "libcurl lacks openssl support needed for test 509\n");
curl_global_cleanup();
return TEST_ERR_MAJOR_BAD;
} }
#endif /* USE_SSLEAY */ #endif /* USE_SSLEAY */