summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* test1521: test getinfo's OFF_T types toobagder/test1521-add-getinfoDaniel Stenberg2017-06-192-0/+23
|
* lib1521: add curl_easy_getinfo calls to the test setDaniel Stenberg2017-06-193-750/+2454
| | | | | Also added return value checks to make sure no unexpected return codes are used.
* getinfo: return sizes as curl_off_tDaniel Stenberg2017-06-1916-20/+473
| | | | | | | | | | | | | | | This change introduces new alternatives for the existing six curl_easy_getinfo() options that return sizes or speeds as doubles. The new versions are named like the old ones but with an appended '_T': CURLINFO_CONTENT_LENGTH_DOWNLOAD_T CURLINFO_CONTENT_LENGTH_UPLOAD_T CURLINFO_SIZE_DOWNLOAD_T CURLINFO_SIZE_UPLOAD_T CURLINFO_SPEED_DOWNLOAD_T CURLINFO_SPEED_UPLOAD_T Closes #1511
* PIPELINING_SERVER_BL: cleanup the internal list useDaniel Stenberg2017-06-195-22/+92
| | | | | | | | | | | The list was freed incorrectly since the llist refactor of cbae73e1dd959. Added test 1550 to verify that it works and avoid future regressions. Reported-by: Pascal Terjan Fixes #1584 Closes #1585
* http2: fix OOM crashDaniel Stenberg2017-06-182-5/+10
| | | | torture mode with test 1021 found it
* CURLOPT_PREQUOTE.3: spellfix man page referenceDaniel Stenberg2017-06-181-1/+1
|
* http_proxy: fix build with http and proxyMarcel Raad2017-06-182-1/+3
| | | | | | After deff7de0eb0e22d2d142b96b9cc84cd8db5d2a48, the build without CURL_DISABLE_PROXY and CURL_DISABLE_HTTP was failing because of missing includes.
* http_proxy: fix compiler warningMarcel Raad2017-06-181-1/+2
| | | | | With CURL_DISABLE_PROXY or CURL_DISABLE_HTTP, GCC complained about a missing prototype for Curl_connect_free.
* TODO: update the TOC tooDaniel Stenberg2017-06-181-0/+1
|
* TODO: implement support for CURLOPT_PREQUOTE with SFTPDaniel Stenberg2017-06-182-5/+12
| | | | | | | ... also updated the CURLOPT_PREQUOTE.3 man page to mention the correct protocol support. Closes #1514
* tool_wrte_cb: remove check for config == NULLDaniel Stenberg2017-06-171-3/+0
| | | | | | | | | | ... as it really cannot have reached this far with config being NULL, thus this is unnecesary and misleading. Bug: https://news.ycombinator.com/item?id=14577585 and https://daniel.haxx.se/blog/2017/06/17/curl-doesnt-spew-binary-anymore/comment-page-1/#comment-18356 Forwarded-to-us-by: Jakub Wilk
* curl: prevent binary output spewed to terminalDaniel Stenberg2017-06-1610-17/+47
| | | | | | | | | ... unless "--output -" is used. Binary detection is done by simply checking for a binary zero in early data. Added test 1425 1426 to verify. Closes #1512
* Makefile.m32: enable -W for MinGW32 buildMarcel Raad2017-06-163-3/+3
| | | | | | The configure-based build also has this in addition to -Wall. Closes https://github.com/curl/curl/pull/1578
* curl-compilers.m4: enable comma clang warningMarcel Raad2017-06-161-0/+5
| | | | | | | It usually warns when using commas instead of semicolons or other operators by accident. Closes https://github.com/curl/curl/pull/1578
* curl-compilers.m4: enable missing-variable-declarations clang warningMarcel Raad2017-06-161-0/+5
| | | | | | It usually warns when forgetting to declare TU-local variables static. Closes https://github.com/curl/curl/pull/1578
* curl-compilers.m4: enable double-promotion warningMarcel Raad2017-06-161-0/+10
| | | | | | | Enable -Wdouble-promotion for both GCC and clang. It warns on implicit promotion from float to double. Closes https://github.com/curl/curl/pull/1578
* curl-compilers.m4: enable vla warning for clangMarcel Raad2017-06-161-0/+5
| | | | | | | Previously, that warning was only implicitly active in C90 mode. Enable it unconditionally as already done for GCC. Closes https://github.com/curl/curl/pull/1578
* http-proxy: fix chunked-encoded CONNECT responsesDaniel Stenberg2017-06-163-4/+3
| | | | | | | | Regression since 5113ad0424. ... and remove 'flaky' from test 1061 again Closes #1579
* http-proxy: deal with EAGAINDaniel Stenberg2017-06-162-8/+4
| | | | | | | | ... the previous code would reset the header length wrongly (since 5113ad0424). This makes test 1060 reliable again. Also: make sws send even smaller chunks of data to increase the likeliness of this happening.
* libtest/libntlmconnect: fix compiler warnings from f94fcdbDaniel Stenberg2017-06-161-2/+2
|
* HTTPS-Proxy: don't offer h2 for https proxy connectionsJay Satiro2017-06-163-3/+6
| | | | | | Bug: https://github.com/curl/curl/issues/1254 Closes #1546
* tests: stabilize test 2032 and 2033Daniel Stenberg2017-06-163-114/+10
| | | | | | | | | | | | | | Both these tests run the same underlying test code: libntlmconnect.c - this test code made some assumptions about socket ordering when it used curl_easy_fdset() and when we changed timing or got accidental changes in libcurl the tests would fail. The tests verify that the different transfers keep using the same connections, which I now instead made sure by adding the number of bytes each transfer gets and then verifies that they always get the same amount as when these tests worked. Closes #1576
* test1148: verify the -# progressbarDaniel Stenberg2017-06-162-1/+58
| | | | Closes #1569
* test1061: mark as flakyDaniel Stenberg2017-06-161-0/+1
| | | | | Fails intermittently on travis builds since a few days. Likely due to 5113ad0424.
* url: refactor the check for Windows drive letter in pathJay Satiro2017-06-161-16/+11
| | | | | | | - Move the logic to detect a Windows drive letter prefix (eg c: in c:foo) into a function-like macro. Closes https://github.com/curl/curl/pull/1571
* mk-ca-bundle.pl: Check curl's exit code after certdata downloadJay Satiro2017-06-161-1/+1
| | | | | | | | | | - No longer allow partial downloads of certdata. Prior to this change partial downloads were (erroneously?) allowed since only the server code was checked to be 200. Bug: https://github.com/curl/curl/pull/1577 Reported-by: Matteo B.
* dist: add the fuzz dir to the tarballDaniel Stenberg2017-06-161-1/+1
|
* configure: disable nghttp2 too if HTTP has been disabledDaniel Stenberg2017-06-161-0/+7
|
* http-proxy: fix build with --disable-proxy or --disable-httpDaniel Stenberg2017-06-162-1/+9
| | | | Reported-by: Dan Fandrich
* fuzz/README: document how to buildDaniel Stenberg2017-06-151-1/+5
| | | | Fixes #1476
* fuzz: corpora file structure, initial commitFrederik B2017-06-156-15/+79
|
* fuzz: bring oss-fuzz initial code converted to C89Frederik B2017-06-155-0/+182
|
* http-proxy: only attempt FTP over HTTP proxyDaniel Stenberg2017-06-156-313/+14
| | | | | | | | | | ... all other non-HTTP protocol schemes are now defaulting to "tunnel trough" mode if a HTTP proxy is specified. In reality there are no HTTP proxies out there that allow those other schemes. Assisted-by: Ray Satiro, Michael Kaufmann Closes #1505
* TODO: the generated include file is goneDaniel Stenberg2017-06-151-28/+0
| | | | ... since commit 73a2fcea0b
* curl_setup.h: error out on CURL_WANTS_CA_BUNDLE_ENV useDaniel Stenberg2017-06-151-0/+4
| | | | | | | | ... to make it really apparent if there's any user using this on purpose. Suggested-by: Jay Satiro Closes #1542
* lib/curl_setup.h: remove CURL_WANTS_CA_BUNDLE_ENVDaniel Stenberg2017-06-153-8/+2
| | | | | | | | | | | | | When this define was set, libcurl would check the environment variable named CURL_CA_BUNDLE at run-time and use that CA cert bundle. This feature was only defined by the watcom and m32 makefiles and caused inconsistent behaviours among libcurls built on different platforms. The curl tool does already feature its own similar logic and the library does not really need it, and it isn't documented libcurl behavior. So this change removes it. Ref: #1538
* test1147: verify -H on a fileDaniel Stenberg2017-06-152-1/+65
|
* curl: allow --header and --proxy-header read from fileDaniel Stenberg2017-06-153-11/+48
| | | | | | | | So many headers can be provided as @filename. Suggested-by: Timothe Litt Closes #1486
* RELEASE-NOTES: synced with 2ad80eec5Daniel Stenberg2017-06-151-195/+16
|
* curl/curlver.h: start working on 7.55.0Daniel Stenberg2017-06-151-4/+4
|
* http-proxy: do the HTTP CONNECT process entirely non-blockingDaniel Stenberg2017-06-149-133/+177
| | | | | | | Mentioned as a problem since 2007 (8f87c15bdac63) and of course it existed even before that. Closes #1547
* progress: let "current speed" be UL + DL speeds combinedDaniel Stenberg2017-06-141-7/+5
| | | | | | Bug #1556 Reported-by: Paul Harris Closes #1559
* system.h: fix MinGW buildMarcel Raad2017-06-141-2/+2
| | | | | CURLSYS_PULL_WS2TCPIP_H got renamed to CURL_PULL_WS2TCPIP_H in commit 73a2fcea0b4adea6ba342cd7ed1149782c214ae3.
* timers: store internal time stamps as time_t instead of doublesDaniel Stenberg2017-06-145-49/+61
| | | | | | | | | | | | This gives us accurate precision and it allows us to avoid storing "no time" for systems with too low timer resolution as we then bump the time up to 1 microsecond. Should fix test 573 on windows. Remove the now unused curlx_tvdiff_secs() function. Maintains the external getinfo() API with using doubles. Fixes #1531
* dist: make the hugehelp.c not get regenerated unnecessarilyDaniel Stenberg2017-06-142-1/+4
| | | | | | | | | | The maketgz script now makes sure the generated hugehelp.c file in the tarball is newer than the generated curl.1 man page, so that it doesn't have to get unnecessarily rebuilt first thing in a typical build. It thus also removes the need for perl to build off a plain release tarball. Fixes #1565
* includes: remove curl/curlbuild.h and curl/curlrules.hDaniel Stenberg2017-06-1446-1997/+390
| | | | | | | | Rely entirely on curl/system.h now. Introduced in Aug 2008 with commit 14240e9e109f. Now gone. Fixes #1456
* release: 7.54.1curl-7_54_1Daniel Stenberg2017-06-142-9/+56
|
* mk-lib1521.pl: updated to match the test changes in 916ec30aDan Fandrich2017-06-131-15/+22
|
* libressl: OCSP and intermediate certs workaround no longer neededStuart Henderson2017-06-131-1/+2
| | | | | | | | lib/vtls/openssl.c has a workaround for a bug with OCSP responses signed by intermediate certs, this was fixed in LibreSSL in https://github.com/libressl-portable/openbsd/commit/912c64f68f7ac4f225b7d1fdc8fbd43168912ba0 Bug: https://curl.haxx.se/mail/lib-2017-06/0038.html
* url: fix buffer overwrite with file protocol (CVE-2017-9502)Daniel Stenberg2017-06-131-5/+22
| | | | | | | | Bug: https://github.com/curl/curl/issues/1540 Advisory: https://curl.haxx.se/docs/adv_20170614.html Assisted-by: Ray Satiro Reported-by: Marcel Raad