aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-11 11:25:24 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-11 11:25:24 +0000
commita930ef0fe6ac38edb4ac9e20fcf7798c279c3822 (patch)
tree2bf705dfe683e029711c69d20d80352fc3af702e
parentf8147ac8991e07f41edd7d2eb81366e05d0bd6aa (diff)
downloadlibmicrohttpd-a930ef0fe6ac38edb4ac9e20fcf7798c279c3822.tar.gz
libmicrohttpd-a930ef0fe6ac38edb4ac9e20fcf7798c279c3822.zip
-check for OpenSSL
-rw-r--r--src/testcurl/https/tls_multi_thread_mode_test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testcurl/https/tls_multi_thread_mode_test.c b/src/testcurl/https/tls_multi_thread_mode_test.c
index 1598ddc9..ee5a8d12 100644
--- a/src/testcurl/https/tls_multi_thread_mode_test.c
+++ b/src/testcurl/https/tls_multi_thread_mode_test.c
@@ -130,6 +130,11 @@ main (int argc, char *const *argv)
130 /* initialize random seed used by curl clients */ 130 /* initialize random seed used by curl clients */
131 unsigned int iseed = (unsigned int) time (NULL); 131 unsigned int iseed = (unsigned int) time (NULL);
132 srand (iseed); 132 srand (iseed);
133 if (NULL != strcasestr (curl_version_info (CURL_VERSION_SSL)->libssh_version, "openssl"))
134 {
135 fprintf (stderr, "Refusing to run test with OpenSSL. Please install libcurl-gnutls\n");
136 return 0;
137 }
133 if (0 != curl_global_init (CURL_GLOBAL_ALL)) 138 if (0 != curl_global_init (CURL_GLOBAL_ALL))
134 { 139 {
135 fprintf (stderr, "Error: %s\n", strerror (errno)); 140 fprintf (stderr, "Error: %s\n", strerror (errno));