aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/test_https_session_info.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2019-05-26 18:17:32 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2019-05-26 18:17:32 +0300
commit3894027826cbc6688428d8d54e2debe25b1d0661 (patch)
tree69c3fa8140a365da5b138aa4519b154e2063c7b8 /src/testcurl/https/test_https_session_info.c
parent710d79a2ea4647d73172ba9aa032a4055bea14a8 (diff)
downloadlibmicrohttpd-3894027826cbc6688428d8d54e2debe25b1d0661.tar.gz
libmicrohttpd-3894027826cbc6688428d8d54e2debe25b1d0661.zip
tests: properly setup CURL options
Diffstat (limited to 'src/testcurl/https/test_https_session_info.c')
-rw-r--r--src/testcurl/https/test_https_session_info.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testcurl/https/test_https_session_info.c b/src/testcurl/https/test_https_session_info.c
index 3507749f..45f13981 100644
--- a/src/testcurl/https/test_https_session_info.c
+++ b/src/testcurl/https/test_https_session_info.c
@@ -151,7 +151,7 @@ test_query_session ()
151 port); 151 port);
152 c = curl_easy_init (); 152 c = curl_easy_init ();
153#if DEBUG_HTTPS_TEST 153#if DEBUG_HTTPS_TEST
154 curl_easy_setopt (c, CURLOPT_VERBOSE, 1); 154 curl_easy_setopt (c, CURLOPT_VERBOSE, 1L);
155#endif 155#endif
156 curl_easy_setopt (c, CURLOPT_URL, url); 156 curl_easy_setopt (c, CURLOPT_URL, url);
157 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 157 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
@@ -163,14 +163,14 @@ test_query_session ()
163 curl_easy_setopt (c, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_1); 163 curl_easy_setopt (c, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_1);
164 curl_easy_setopt (c, CURLOPT_SSL_CIPHER_LIST, aes256_sha); 164 curl_easy_setopt (c, CURLOPT_SSL_CIPHER_LIST, aes256_sha);
165 /* currently skip any peer authentication */ 165 /* currently skip any peer authentication */
166 curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0); 166 curl_easy_setopt (c, CURLOPT_SSL_VERIFYPEER, 0L);
167 curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0); 167 curl_easy_setopt (c, CURLOPT_SSL_VERIFYHOST, 0L);
168 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 168 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L);
169 169
170 /* NOTE: use of CONNECTTIMEOUT without also 170 /* NOTE: use of CONNECTTIMEOUT without also
171 * setting NOSIGNAL results in really weird 171 * setting NOSIGNAL results in really weird
172 * crashes on my system! */ 172 * crashes on my system! */
173 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); 173 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L);
174 if (CURLE_OK != (errornum = curl_easy_perform (c))) 174 if (CURLE_OK != (errornum = curl_easy_perform (c)))
175 { 175 {
176 fprintf (stderr, "curl_easy_perform failed: `%s'\n", 176 fprintf (stderr, "curl_easy_perform failed: `%s'\n",