aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-02-13 21:36:24 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-02-13 21:36:24 +0000
commit11fae450fafdf65df0088052062fd3b86de805ee (patch)
tree17f3be4b947ab82675f4585b130ce135809b6331
parentcf9259dd9285260d2d97b908aa0338d17b83da0b (diff)
make this test disabled properly when built with yassl
-rw-r--r--tests/libtest/lib509.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/libtest/lib509.c b/tests/libtest/lib509.c
index 6650149f9..6e5e67139 100644
--- a/tests/libtest/lib509.c
+++ b/tests/libtest/lib509.c
@@ -331,11 +331,14 @@ int test(char *URL)
return i;
}
#endif /* YASSL_VERSION */
-#else /* USE_SSLEAY */
+#endif /* USE_SSLEAY */
+
+#if !defined(USE_SSLEAY) || defined(YASSL_VERSION)
int test(char *URL)
{
(void)URL;
+
if (curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) {
fprintf(stderr, "curl_global_init() failed\n");
return TEST_ERR_MAJOR_BAD;