libmicrohttpd

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

commit 9afe92d579ebd9c700916e22c45689522949ef9f
parent 8b93f7cf96b33be64581fa5280a2c5ee577bdf56
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Tue, 18 Feb 2014 18:40:16 +0000

Reverse OpenSSL <-> GnuTLS check

Diffstat:
Msrc/testcurl/https/test_https_get_parallel_threads.c | 4++--
Msrc/testcurl/https/test_tls_options.c | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/testcurl/https/test_https_get_parallel_threads.c b/src/testcurl/https/test_https_get_parallel_threads.c @@ -142,9 +142,9 @@ main (int argc, char *const *argv) fprintf (stderr, "Curl does not support SSL. Cannot run the test.\n"); return 0; } - if (NULL != strcasestr (ssl_version, "openssl")) + if (0 != strncmp (ssl_version, "GnuTLS", 6)) { - fprintf (stderr, "Refusing to run test with OpenSSL. Please install libcurl-gnutls\n"); + fprintf (stderr, "This test can be run only with libcurl-gnutls.\n"); return 0; } if (0 != curl_global_init (CURL_GLOBAL_ALL)) diff --git a/src/testcurl/https/test_tls_options.c b/src/testcurl/https/test_tls_options.c @@ -100,9 +100,9 @@ main (int argc, char *const *argv) fprintf (stderr, "Curl does not support SSL. Cannot run the test.\n"); return 0; } - if (NULL != strcasestr (ssl_version, "openssl")) + if (0 != strncmp (ssl_version, "GnuTLS", 6)) { - fprintf (stderr, "Refusing to run test with OpenSSL. Please install libcurl-gnutls\n"); + fprintf (stderr, "This test can be run only with libcurl-gnutls.\n"); return 0; }