According to the libcurl documentation the parameter to curl_version_info
should be CURLVERSION_NOW rather than a bit value from the features
bitmask.
Also, on my installation at least libssh_version is NULL so the check
segfaults. It would seem that ssl_version is a more appropriate field to
check.
---
src/testcurl/https/tls_multi_thread_mode_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/testcurl/https/tls_multi_thread_mode_test.c
b/src/testcurl/https/tls_multi_thread_mode_test.c
index ee5a8d1..c90f41a 100644
--- a/src/testcurl/https/tls_multi_thread_mode_test.c
+++ b/src/testcurl/https/tls_multi_thread_mode_test.c
@@ -130,7 +130,7 @@ main (int argc, char *const *argv)
/* initialize random seed used by curl clients */
unsigned int iseed = (unsigned int) time (NULL);
srand (iseed);
- if (NULL != strcasestr (curl_version_info
(CURL_VERSION_SSL)->libssh_version, "openssl"))
+ if (NULL != strcasestr (curl_version_info (CURLVERSION_NOW)->ssl_version,
"openssl"))
{
fprintf (stderr, "Refusing to run test with OpenSSL. Please install
libcurl-gnutls\n");
return 0;
--
1.7.10