diff options
Diffstat (limited to 'src/testcurl/https/tls_test_common.c')
-rw-r--r-- | src/testcurl/https/tls_test_common.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/testcurl/https/tls_test_common.c b/src/testcurl/https/tls_test_common.c index 3641f098..367bed00 100644 --- a/src/testcurl/https/tls_test_common.c +++ b/src/testcurl/https/tls_test_common.c | |||
@@ -89,7 +89,7 @@ test_daemon_get (void *cls, | |||
89 | 89 | ||
90 | c = curl_easy_init (); | 90 | c = curl_easy_init (); |
91 | #if DEBUG_HTTPS_TEST | 91 | #if DEBUG_HTTPS_TEST |
92 | curl_easy_setopt (c, CURLOPT_VERBOSE, 1); | 92 | curl_easy_setopt (c, CURLOPT_VERBOSE, 1L); |
93 | #endif | 93 | #endif |
94 | curl_easy_setopt (c, CURLOPT_URL, url); | 94 | curl_easy_setopt (c, CURLOPT_URL, url); |
95 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); | 95 | curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); |
@@ -107,13 +107,13 @@ test_daemon_get (void *cls, | |||
107 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, ver_peer); | 107 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, ver_peer); |
108 | if (ver_peer) | 108 | if (ver_peer) |
109 | curl_easy_setopt (c, CURLOPT_CAINFO, ca_cert_file_name); | 109 | curl_easy_setopt (c, CURLOPT_CAINFO, ca_cert_file_name); |
110 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0); | 110 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0L); |
111 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 111 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
112 | 112 | ||
113 | /* NOTE: use of CONNECTTIMEOUT without also | 113 | /* NOTE: use of CONNECTTIMEOUT without also |
114 | setting NOSIGNAL results in really weird | 114 | setting NOSIGNAL results in really weird |
115 | crashes on my system! */ | 115 | crashes on my system! */ |
116 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 116 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
117 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 117 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
118 | { | 118 | { |
119 | fprintf (stderr, "curl_easy_perform failed: `%s'\n", | 119 | fprintf (stderr, "curl_easy_perform failed: `%s'\n", |
@@ -238,15 +238,15 @@ send_curl_req (char *url, struct CBC * cbc, const char *cipher_suite, | |||
238 | curl_easy_setopt (c, CURLOPT_SSL_CIPHER_LIST, cipher_suite); | 238 | curl_easy_setopt (c, CURLOPT_SSL_CIPHER_LIST, cipher_suite); |
239 | 239 | ||
240 | /* currently skip any peer authentication */ | 240 | /* currently skip any peer authentication */ |
241 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0); | 241 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0L); |
242 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0); | 242 | curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0L); |
243 | 243 | ||
244 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); | 244 | curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L); |
245 | 245 | ||
246 | /* NOTE: use of CONNECTTIMEOUT without also | 246 | /* NOTE: use of CONNECTTIMEOUT without also |
247 | setting NOSIGNAL results in really weird | 247 | setting NOSIGNAL results in really weird |
248 | crashes on my system! */ | 248 | crashes on my system! */ |
249 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 249 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L); |
250 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 250 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
251 | { | 251 | { |
252 | fprintf (stderr, "curl_easy_perform failed: `%s'\n", | 252 | fprintf (stderr, "curl_easy_perform failed: `%s'\n", |