Browse Source

Reverse OpenSSL <-> GnuTLS check

Evgeny Grin (Karlson2k) 12 years ago
parent
commit
9afe92d579

+ 2 - 2
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))

+ 2 - 2
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;
   }