summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* configure: convert -I to -isystem as a last stepbagder/configure-compilerDaniel Stenberg2020-03-082-6/+7
| | | | | As all the -I uses in CFLAGS at that point are for system headers and third party libraries this helps us remove/ignore warnings on those!
* silly web server: silent a compilation warningPatrick Monnerat2020-03-081-1/+1
| | | | | | | | | Recent gcc warns when byte count of strncpy() equals the destination buffer size. Since the destination buffer is previously cleared and the source string is always shorter, reducing the byte count by one silents the warning without affecting the result. Closes #5059
* cookie: get_top_domain() sets zero length for null domainsPatrick Monnerat2020-03-081-10/+9
| | | | This silents a compilation warning with gcc -O3.
* test 1560: avoid valgrind false positivesPatrick Monnerat2020-03-081-1/+4
| | | | | | | When using maximum code optimization level (-O3), valgrind wrongly detects uses of uninitialized values in strcmp(). Preset buffers with all zeroes to avoid that.
* sha256: Added WinCrypt implementationSteve Holme2020-03-081-0/+43
| | | | Closed #5030
* sha256: Added SecureTransport implementationSteve Holme2020-03-081-0/+31
|
* lib1564: reduce number of mid-wait wakeup callsDaniel Stenberg2020-03-071-2/+2
| | | | | | | | | | | | | | | | | | This test does A LOT of *wakeup() calls and then calls curl_multi_poll() twice. The first *poll() is then expected to return early and the second not - as the first is supposed to drain the socketpair pipe. It turns out however that when given "excessive" amounts of writes to the pipe, some operating systems (the Solaris based are known) will return EAGAIN before the pipe is drained, which in our test case causes the second *poll() call to also abort early. This change attempts to avoid the OS-specific behaviors in the test by reducing the amount of wakeup calls from 1234567 to 10. Reported-by: Andy Fiddaman Fixes #5037 Closes #5058
* mime: fix the binary encoder to handle large data properlyPatrick Monnerat2020-03-076-4/+423
| | | | | | | | | | New test 666 checks this is effective. As upload buffer size is significant in this kind of tests, shorten it in similar test 652. Fixes #4860 Closes #4833 Reported-by: RuurdBeerstra on github
* mime: do not perform more than one read in a rowPatrick Monnerat2020-03-0715-77/+679
| | | | | | | | | | | | | | | | | | | | | Input buffer filling may delay the data sending if data reads are slow. To overcome this problem, file and callback data reads do not accumulate in buffer anymore. All other data (memory data and mime framing) are considered as fast and still concatenated in buffer. As this may highly impact performance in terms of data overhead, an early end of part data check is added to spare a read call. When encoding a part's data, an encoder may require more bytes than made available by a single read. In this case, the above rule does not apply and reads are performed until the encoder is able to deliver some data. Tests 643, 644, 645, 650 and 654 have been adapted to the output data changes, with test data size reduced to avoid the boredom of long lists of 1-byte chunks in verification data. New test 667 checks mimepost using single-byte read callback with encoder. New test 668 checks the end of part data early detection. Fixes #4826 Reported-by: MrdUkk on github
* mime: latch last read callback status.Patrick Monnerat2020-03-0713-13/+628
| | | | | | | | | | | | | In case a read callback returns a status (pause, abort, eof, error) instead of a byte count, drain the bytes read so far but remember this status for further processing. Takes care of not losing data when pausing, and properly resume a paused mime structure when requested. New tests 670-673 check unpausing cases, with easy or multi interface and mime or form api. Fixes #4813 Reported-by: MrdUkk on github
* runtests: fix missing use of exe_ext helper functionMarc Hoersken2020-03-071-2/+2
|
* ares: store dns parameters for duphandleErnst Sjöstrand2020-03-073-4/+37
| | | | | | | | | | | With c-ares the dns parameters lives in ares_channel. Store them in the curl handle and set them again in easy_duphandle. Regression introduced in #3228 (6765e6d), shipped in curl 7.63.0. Fixes #4893 Closes #5020 Signed-off-by: Ernst Sjöstrand <ernst.sjostrand@verisure.com>
* version: make curl_version* thread-safe without using global contextDaniel Stenberg2020-03-076-103/+100
| | | | Closes #5010
* RELEASE-NOTES: syncedDaniel Stenberg2020-03-071-6/+27
|
* tests: use native Sleep function as fallback on WindowsMarc Hoersken2020-03-071-2/+7
| | | | | Reviewed-By: Daniel Stenberg Closes #5054
* perl: align order and completeness of Windows OS checksMarc Hoersken2020-03-072-2/+2
|
* tool_cb_see: set correct copyright year rangeDaniel Stenberg2020-03-072-2/+2
| | | | Follow-up to a39e5bfb9
* seek: fix fallback for missing ftruncate on WindowsMarc Hoersken2020-03-073-8/+7
| | | | | | | | This fixes test 198 on versions of MinGW-w64 without ftruncate Reviewed-By: Daniel Stenberg Reviewed-By: Marcel Raad Closes #5055
* config-win32: Windows does not have ftruncateMarc Hoersken2020-03-071-1/+1
|
* pause: force a connection (re-)check after unpausingDaniel Stenberg2020-03-071-0/+4
| | | | | | | | | There might be data available that was already read off the socket, for example in the TLS layer. Reported-by: Anders Berg Fixes #4966 Closes #5049
* socks5: switch state properly when the resolve is doneDaniel Stenberg2020-03-071-2/+2
| | | | | | | Regression from 4a4b63d (and #4907) Reported-by: vitaha85 on github Fixes #5053 Closes #5056
* libssh: Fix matching user-specified MD5 hex keyJay Satiro2020-03-079-8/+159
| | | | | | | | | | | Prior to this change a match would never be successful because it was mistakenly coded to compare binary data from libssh to a user-specified hex string (ie CURLOPT_SSH_HOST_PUBLIC_KEY_MD5). Reported-by: fds242@users.noreply.github.com Fixes https://github.com/curl/curl/issues/4971 Closes https://github.com/curl/curl/pull/4974
* pause: bail out on bad inputDaniel Stenberg2020-03-061-6/+12
| | | | | | | A NULL easy handle or an easy handle without an associated connection cannot be paused or unpaused. Closes #5050
* unit1612: fixed the inclusion and compilation of the HMAC unit testSteve Holme2020-03-062-2/+3
| | | | | | | | | Follow up to 3f74e5e6 to fix: - A typo in Makefile.inc where unit1611 was used instead - Some compilation issues in unit1612.c Closes #5024
* pause: return early for calls that don't change pause stateDaniel Stenberg2020-03-061-0/+7
| | | | | | Reviewed-by: Patrick Monnerat Ref: #4833 Closes #5026
* curl_share_setopt.3: Note sharing cookies doesn't enable the engineJay Satiro2020-03-061-0/+2
| | | | | | | | | | Follow-up to d0a7ee3 which fixed a bug in 7.66.0 that caused CURL_LOCK_DATA_COOKIE to enable the easy handle's cookie engine. Bug: https://curl.haxx.se/mail/lib-2020-03/0019.html Reported-by: Felipe Gasper Closes https://github.com/curl/curl/pull/5048
* multi: skip EINTR check on wakeup socket if it was closedJay Satiro2020-03-061-2/+4
| | | | | | | | | | | | - Don't check errno on wakeup socket if sread returned 0 since sread doesn't set errno in that case. This is a follow-up to cf7760a from several days ago which fixed Curl_multi_wait to stop busy looping sread on the non-blocking wakeup socket if it was closed (ie sread returns 0). Due to a logic error it was still possible to busy loop in that case if errno == EINTR. Closes https://github.com/curl/curl/pull/5047
* transfer: set correct copyright year rangeDaniel Stenberg2020-03-061-1/+1
|
* urldata: remove the 'stream_was_rewound' connectdata struct memberDaniel Stenberg2020-03-062-6/+2
| | | | | | | ... as it is never set anywhere. Follow-up to 2f44e94ef Closes #5046
* Revert "pause: force-drain the transfer on unpause"bagder/revert-unpause-h2Daniel Stenberg2020-03-052-4/+2
| | | | | | | | | | This reverts commit fa0216b294af4c7113a9040ca65eefc7fc18ac1c (from #5000) Clearly that didn't solve the problem correctly. Reported-by: Christopher Reid Reopens #4966 Fixes #5044
* RELEASE-NOTES: syncedDaniel Stenberg2020-03-052-259/+17
| | | | and bumped curlver.h
* MANUAL: update a dict-using command lineDaniel Stenberg2020-03-051-1/+1
| | | | The 'web1913' database is now invalid, use 'gcide' instead.
* KNOWN_BUGS: configure --with-gssapi with Heimdal is ignored on macOSDaniel Stenberg2020-03-051-0/+7
| | | | Closes #3841
* polarssl: remove more references and mentionsDaniel Stenberg2020-03-0511-42/+19
| | | | | | Assisted-by: Jay Satiro Follow-up to 6357a19ff29dac04 Closes #5036
* tests: wrap ignored test failures in bracesMarc Hoersken2020-03-041-1/+7
|
* tests: align some Windows sleep defines with each otherMarc Hoersken2020-03-043-5/+5
|
* tests: try to make sleeping portable by avoiding selectMarc Hoersken2020-03-043-8/+37
| | | | | | | | select does not support just waiting on Windows: https://perldoc.perl.org/perlport.html#select Reviewed-By: Daniel Stenberg Closes #5035
* runtests.1: rephrase how to specify what tests to runDaniel Stenberg2020-03-041-16/+25
| | | | | | | Also mention the new tilde-prefixed way to ignore test results. Reviewed-By: Marc Hoersken Closes #5033
* cirrus-ci: disable the FreeBSD 13 buildsDaniel Stenberg2020-03-041-1/+1
| | | | | | | | | | FreeBSD 13.0 is apparently close to a year away from a stable release and has proven to cause intermittent builds failures recently. Assisted-by: Dan Fandrich Assisted-by: Fedor Korotkov Fixes #5028 Closes #5029
* RELEASE-NOTES: 7.69.0curl-7_69_0Daniel Stenberg2020-03-041-52/+86
|
* THANKS: from 7.69.0Daniel Stenberg2020-03-041-112/+151
| | | | Now sorted case insensitive
* ci/tests: fix escaping of testnames and disable proxy for CI APIsMarc Hoersken2020-03-032-8/+14
| | | | | Follow up to ada581f and c0d8b96 Closes #5031
* cmake: Show HTTPS-proxy in the features outputJay Satiro2020-03-031-0/+1
| | | | | | | | | | | | | | - Show HTTPS-proxy in the features output for those backends that support it: OpenSSL, GnuTLS and NSS. Prior to this change HTTPS-proxy was missing from the cmake features output even if curl was built with it. Only cmake output was affected. Both the library and tool correctly reported the feature. Bug: https://curl.haxx.se/mail/lib-2020-03/0008.html Reported-by: David Lopes Closes https://github.com/curl/curl/pull/5025
* ci/tests: Make it possible to still run but ignore failing testsMarc Hoersken2020-03-034-27/+62
| | | | | | | This enables the development of a solution for the failing tests by running them on CI while ignoring their result for the overall status. Closes #4994
* README.md: add Azure DevOps Pipelines build status badgeMarc Hoersken2020-03-031-0/+1
|
* ci/tests: Move CI test result creation above environment setupMarc Hoersken2020-03-031-10/+14
| | | | | | This avoids using our test servers as proxy to the AppVeyor API. Closes #5022
* ci/tests: Send test results to AppVeyor for status overviewMarc Hoersken2020-03-033-1/+115
| | | | Closes #5021
* Revert "sha256: Added SecureTransport implementation"Daniel Stenberg2020-03-031-70/+0
| | | | | | | | This reverts commit 4feb38deed33fed14ff7c370a6a9153c661dbb9c (from #4956) That commit broke test 1610 on macos builds without TLS. Closes #5027
* dist: include tests/azure.pm in the tarballDaniel Stenberg2020-03-031-1/+2
| | | | | Bug: https://github.com/curl/curl/commit/ada581f2cc32f48c1629b729707ac19208435b27#commitcomment-37601589 Reported-by: Marcel Raad
* configure.ac: Disable metalink if mbedTLS is specifiedSteve Holme2020-03-031-2/+2
| | | | | | | | | Follow up to cdcc9df1 and #5006. Even though I mentioned mbedTLS as being one of the backends that metalink needs to be disabled for, I seem to have included it in the list of allowed SSL/TLS backends in comnfigure.ac :( Closes #5013