aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/test_tls_options.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/https/test_tls_options.c')
-rw-r--r--src/testcurl/https/test_tls_options.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testcurl/https/test_tls_options.c b/src/testcurl/https/test_tls_options.c
index 0b065769..41c8e20d 100644
--- a/src/testcurl/https/test_tls_options.c
+++ b/src/testcurl/https/test_tls_options.c
@@ -82,6 +82,7 @@ int
82main (int argc, char *const *argv) 82main (int argc, char *const *argv)
83{ 83{
84 unsigned int errorCount = 0; 84 unsigned int errorCount = 0;
85 cosnt char *ssl_version;
85 86
86 int daemon_flags = 87 int daemon_flags =
87 MHD_USE_THREAD_PER_CONNECTION | MHD_USE_SSL | MHD_USE_DEBUG; 88 MHD_USE_THREAD_PER_CONNECTION | MHD_USE_SSL | MHD_USE_DEBUG;
@@ -95,6 +96,17 @@ main (int argc, char *const *argv)
95 { 96 {
96 return 0; 97 return 0;
97 } 98 }
99 ssl_version = curl_version_info (CURLVERSION_NOW)->ssl_version;
100 if (NULL == ssl_version)
101 {
102 fprintf (stderr, "Curl does not support SSL. Cannot run the test.\n");
103 return 0;
104 }
105 if (NULL != strcasestr (ssl_version, "openssl"))
106 {
107 fprintf (stderr, "Refusing to run test with OpenSSL. Please install libcurl-gnutls\n");
108 return 0;
109 }
98 110
99 if (0 != curl_global_init (CURL_GLOBAL_ALL)) 111 if (0 != curl_global_init (CURL_GLOBAL_ALL))
100 { 112 {