aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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;