aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_digestauth_sha256.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/test_digestauth_sha256.c
parent710d79a2ea4647d73172ba9aa032a4055bea14a8 (diff)
downloadlibmicrohttpd-3894027826cbc6688428d8d54e2debe25b1d0661.tar.gz
libmicrohttpd-3894027826cbc6688428d8d54e2debe25b1d0661.zip
tests: properly setup CURL options
Diffstat (limited to 'src/testcurl/test_digestauth_sha256.c')
-rw-r--r--src/testcurl/test_digestauth_sha256.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testcurl/test_digestauth_sha256.c b/src/testcurl/test_digestauth_sha256.c
index aaa57bbe..c3430283 100644
--- a/src/testcurl/test_digestauth_sha256.c
+++ b/src/testcurl/test_digestauth_sha256.c
@@ -259,14 +259,14 @@ testDigestAuth ()
259 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc); 259 curl_easy_setopt (c, CURLOPT_WRITEDATA, &cbc);
260 curl_easy_setopt (c, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST); 260 curl_easy_setopt (c, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
261 curl_easy_setopt (c, CURLOPT_USERPWD, "testuser:testpass"); 261 curl_easy_setopt (c, CURLOPT_USERPWD, "testuser:testpass");
262 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 262 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1L);
263 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); 263 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L);
264 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L); 264 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 150L);
265 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 265 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
266 /* NOTE: use of CONNECTTIMEOUT without also 266 /* NOTE: use of CONNECTTIMEOUT without also
267 setting NOSIGNAL results in really weird 267 setting NOSIGNAL results in really weird
268 crashes on my system!*/ 268 crashes on my system!*/
269 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); 269 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1L);
270 if (CURLE_OK != (errornum = curl_easy_perform (c))) 270 if (CURLE_OK != (errornum = curl_easy_perform (c)))
271 { 271 {
272 fprintf (stderr, 272 fprintf (stderr,