libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit adc3d39aa39ea3e81bce88f3d77418ad32f5525c
parent 2ea80ed34242b5ab2020ace3d70c7e21f50d4955
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 20 Sep 2013 16:41:16 +0000

need to check for gnutls version of libcurl here as well

Diffstat:
Msrc/testcurl/https/test_tls_options.c | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/testcurl/https/test_tls_options.c b/src/testcurl/https/test_tls_options.c @@ -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)) {