Reverse OpenSSL <-> GnuTLS check

This commit is contained in:
Evgeny Grin (Karlson2k) committed 2014-02-18 18:40:16 +00:00
1 parent 8b93f7cf96
commit 9afe92d579
2 files changed
+4 -4

No files matched your search

@@ -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))