diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2014-02-18 18:40:16 +0000 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2014-02-18 18:40:16 +0000 |
commit | 9afe92d579ebd9c700916e22c45689522949ef9f (patch) | |
tree | 13694aadd268604b3b839b3bb5eb17ce6100feb4 | |
parent | 8b93f7cf96b33be64581fa5280a2c5ee577bdf56 (diff) | |
download | libmicrohttpd-9afe92d579ebd9c700916e22c45689522949ef9f.tar.gz libmicrohttpd-9afe92d579ebd9c700916e22c45689522949ef9f.zip |
Reverse OpenSSL <-> GnuTLS check
-rw-r--r-- | src/testcurl/https/test_https_get_parallel_threads.c | 4 | ||||
-rw-r--r-- | src/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 index 84ce0a18..4e27370b 100644 --- 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) | |||
142 | fprintf (stderr, "Curl does not support SSL. Cannot run the test.\n"); | 142 | fprintf (stderr, "Curl does not support SSL. Cannot run the test.\n"); |
143 | return 0; | 143 | return 0; |
144 | } | 144 | } |
145 | if (NULL != strcasestr (ssl_version, "openssl")) | 145 | if (0 != strncmp (ssl_version, "GnuTLS", 6)) |
146 | { | 146 | { |
147 | fprintf (stderr, "Refusing to run test with OpenSSL. Please install libcurl-gnutls\n"); | 147 | fprintf (stderr, "This test can be run only with libcurl-gnutls.\n"); |
148 | return 0; | 148 | return 0; |
149 | } | 149 | } |
150 | if (0 != curl_global_init (CURL_GLOBAL_ALL)) | 150 | 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 index 17896b65..d3e4e917 100644 --- 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) | |||
100 | fprintf (stderr, "Curl does not support SSL. Cannot run the test.\n"); | 100 | fprintf (stderr, "Curl does not support SSL. Cannot run the test.\n"); |
101 | return 0; | 101 | return 0; |
102 | } | 102 | } |
103 | if (NULL != strcasestr (ssl_version, "openssl")) | 103 | if (0 != strncmp (ssl_version, "GnuTLS", 6)) |
104 | { | 104 | { |
105 | fprintf (stderr, "Refusing to run test with OpenSSL. Please install libcurl-gnutls\n"); | 105 | fprintf (stderr, "This test can be run only with libcurl-gnutls.\n"); |
106 | return 0; | 106 | return 0; |
107 | } | 107 | } |
108 | 108 | ||