need to check for gnutls version of libcurl here as well

This commit is contained in:
Christian Grothoff committed 2013-09-20 16:41:16 +00:00
1 parent 2ea80ed342
commit adc3d39aa3
1 file changed
+12
+12
View File
@@ -82,6 +82,7 @@ int
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 @@ main (int argc, char *const *argv)
{
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))
{