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) 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 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) 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; }