gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r29446 - libmicrohttpd/src/testcurl/https


From: gnunet
Subject: [GNUnet-SVN] r29446 - libmicrohttpd/src/testcurl/https
Date: Fri, 20 Sep 2013 18:41:16 +0200

Author: grothoff
Date: 2013-09-20 18:41:16 +0200 (Fri, 20 Sep 2013)
New Revision: 29446

Modified:
   libmicrohttpd/src/testcurl/https/test_tls_options.c
Log:
need to check for gnutls version of libcurl here as well

Modified: libmicrohttpd/src/testcurl/https/test_tls_options.c
===================================================================
--- libmicrohttpd/src/testcurl/https/test_tls_options.c 2013-09-20 16:38:37 UTC 
(rev 29445)
+++ libmicrohttpd/src/testcurl/https/test_tls_options.c 2013-09-20 16:41:16 UTC 
(rev 29446)
@@ -82,6 +82,7 @@
 main (int argc, char *const *argv)
 {
   unsigned int errorCount = 0;
+  cosnt char *ssl_version;
 
   int daemon_flags =
     MHD_USE_THREAD_PER_CONNECTION | MHD_USE_SSL | MHD_USE_DEBUG;
@@ -95,6 +96,17 @@
     {
       return 0;
     }
+  ssl_version = curl_version_info (CURLVERSION_NOW)->ssl_version;
+  if (NULL == ssl_version)
+  {
+    fprintf (stderr, "Curl does not support SSL.  Cannot run the test.\n");
+    return 0;
+  }
+  if (NULL != strcasestr (ssl_version, "openssl"))
+  {
+    fprintf (stderr, "Refusing to run test with OpenSSL.  Please install 
libcurl-gnutls\n");
+    return 0;
+  }
 
   if (0 != curl_global_init (CURL_GLOBAL_ALL))
     {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]