]> granicus.if.org Git - curl/commitdiff
log a message, stating the need of openssl to run this test
authorYang Tse <yangsita@gmail.com>
Mon, 19 Feb 2007 04:51:47 +0000 (04:51 +0000)
committerYang Tse <yangsita@gmail.com>
Mon, 19 Feb 2007 04:51:47 +0000 (04:51 +0000)
tests/libtest/lib509.c

index 8f2210f5fee54c213188662b124297b1e7b6ea86..ad262620430dc6aec39110d794d004cb02a03e11 100644 (file)
@@ -332,10 +332,19 @@ int test(char *URL)
 
   return i;
 }
+
 #else /* USE_SSLEAY */
+
 int test(char *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 */