summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* test1148: tolerate progress updates betterbagder/test1148-stablizerDaniel Stenberg2018-04-121-1/+6
| | | | Fixes #2446
* duphandle: make sure CURLOPT_RESOLVE is duplicated fine tooDaniel Stenberg2018-04-122-1/+14
| | | | | | | | Verified in test 1502 now Fixes #2485 Closes #2486 Reported-by: Ernst Sjöstrand
* mailmap: add a monnerat fixup [ci skip]Daniel Stenberg2018-04-121-0/+1
|
* proxy: show getenv proxy use in verbose outputDaniel Stenberg2018-04-111-7/+19
| | | | | | | | | ... to aid debugging etc as it sometimes isn't immediately obvious why curl uses or doesn't use a proxy. Inspired by #2477 Closes #2480
* travis: build libpsl and make builds use itDaniel Stenberg2018-04-111-17/+57
| | | | closes #2471
* travis: bump to clang 6 and gcc 7Daniel Stenberg2018-04-101-9/+9
| | | | | | Extra-eye-on-this-by: Marcel Raad Closes #2478
* travis: use trusty for coverage buildMarcel Raad2018-04-101-1/+1
| | | | | | This works now and precise is in the process of being decommissioned. Closes https://github.com/curl/curl/pull/2476
* lib: silence null-dereference warningsMarcel Raad2018-04-092-4/+0
| | | | | | | | | | In debug mode, MingGW-w64's GCC 7.3 issues null-dereference warnings when dereferencing pointers after DEBUGASSERT-ing that they are not NULL. Fix this by removing the DEBUGASSERTs. Suggested-by: Daniel Stenberg Ref: https://github.com/curl/curl/pull/2463
* winbuild: fix URLkdekker2018-04-091-1/+1
| | | | | | | Follow up on https://github.com/curl/curl/pull/2472. Now using en-us instead of nl-nl as language code in the URL. Closes https://github.com/curl/curl/pull/2475
* winbuild: updated the documentationkdekker2018-04-092-8/+19
| | | | | | | The setenv command no longer exists and visual studio build prompts got changed. Used Visual Studio 2015/2017 as reference. Closes #2472
* test1136: fix cookie order after commit c990eadd1277Daniel Stenberg2018-04-091-1/+1
|
* build: cleanup to fix clang warnings/errorsDaniel Stenberg2018-04-083-28/+18
| | | | | | | | | | unit1309 and vtls/gtls: error: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension Reported-by: Rikard Falkeborn Fixes #2466 Closes #2468
* examples/sftpuploadresmue: Fix Windows large file seekJay Satiro2018-04-071-1/+5
| | | | | | | | | - Use _fseeki64 instead of fseek (long) to seek curl_off_t in Windows. - Use CURL_FORMAT_CURL_OFF_T specifier instead of %ld to print curl_off_t. Caught by Marc's CI builds.
* curl_setup: provide a CURL_SA_FAMILY_T type if none existsDaniel Stenberg2018-04-073-4/+9
| | | | | | | ... and use this type instead of 'sa_family_t' in the code since several platforms don't have it. Closes #2463
* build: add picky compiler warning flags for gcc 6 and 7Eric Gallager2018-04-076-5/+25
|
* configure: detect sa_family_tDaniel Stenberg2018-04-071-0/+20
|
* tool_operate: Fix retry on FTP 4xx to ignore other protocolsStefan Agner2018-04-071-1/+5
| | | | | | | | | | | | | | | Only treat response code as FTP response codes in case the protocol type is FTP. This fixes an issue where an HTTP download was treated as FTP in case libcurl returned with 33. This happens when the download has already finished and the server responses 416: HTTP/1.1 416 Requested Range Not Satisfiable This should not be treated as an FTP error. Fixes #2464 Closes #2465
* hash: calculate sizes with size_t instead of longsDaniel Stenberg2018-04-062-5/+5
| | | | | | ... since they return size_t anyway! closes #2462
* RELEASE-NOTES: syncedDaniel Stenberg2018-04-062-4/+59
|
* build-openssl.bat: Refer to VS2017 as VC14.1 instead of VC15Jay Satiro2018-04-062-21/+21
| | | | | | | | .. and do the same for build-wolfssl.bat. Because MS calls it VC14.1. Closes https://github.com/curl/curl/pull/2189
* winbuild: make the clean target work without build-typekdekker2018-04-062-11/+18
| | | | | | | | | Due to the check in Makefile.vc and MakefileBuild.vc, no make call can be invoked unless a build-type was specified. However, a clean target only existed when a build type was specified. As a result, the clean target was unreachable. Made clean target unconditional. Closes #2455
* build-openssl.bat: allow custom paths for VS and perlpatelvivekv19932018-04-061-24/+66
| | | | | Fixes #2430 Closes #2457
* FTP: allow PASV on IPv6 connections when a proxy is being usedLaurie Clark-Michalek2018-04-061-1/+1
| | | | | | | | | | | | In the situation of a client connecting to an FTP server using an IPv6 tunnel proxy, the connection info will indicate that the connection is IPv6. However, because the server behing the proxy is IPv4, it is permissable to attempt PSV mode. In the case of the FTP server being IPv4 only, EPSV will always fail, and with the current logic curl will be unable to connect to the server, as the IPv6 fwdproxy causes curl to think that EPSV is impossible. Closes #2432
* file: restore old behavior for file:////foo/bar URLsJon DeVree2018-04-062-35/+13
| | | | | | | | | | | | | | | | | | | | | curl 7.57.0 and up interpret this according to Appendix E.3.2 of RFC 8089 but then returns an error saying this is unimplemented. This is actually a regression in behavior on both Windows and Unix. Before curl 7.57.0 this URL was treated as a path of "//foo/bar" and then passed to the relevant OS API. This means that the behavior of this case is actually OS dependent. The Unix path resolution rules say that the OS must handle swallowing the extra "/" and so this path is the same as "/foo/bar" The Windows path resolution rules say that this is a UNC path and automatically handles the SMB access for the program. So curl on Windows was already doing Appendix E.3.2 without any special code in curl. Regression Closes #2438
* Revert "openssl: Don't add verify locations when verifypeer==0"Gaurav Malhotra2018-04-061-15/+16
| | | | | | | | | | | | | This reverts commit dc85437736e1fc90e689bb1f6c51c8f1aa9430eb. libcurl (with the OpenSSL backend) performs server certificate verification even if verifypeer == 0 and the verification result is available using CURLINFO_SSL_VERIFYRESULT. The commit that is being reverted caused the CURLINFO_SSL_VERIFYRESULT to not have useful information for the verifypeer == 0 use case (it would always have X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY). Closes #2451
* tls: fix mbedTLS 2.7.0 build + handle sha256 failuresWyatt O'Day2018-04-0610-10/+29
| | | | | | (mbedtls 2.70 compiled with MBEDTLS_DEPRECATED_REMOVED) Closes #2453
* cookie: case-insensitive hashing for the domainsLauri Kasanen2018-04-062-3/+18
| | | | closes #2458
* cookie: fix and optimize 2nd top level domain name extractionPatrick Monnerat2018-04-042-24/+21
| | | | | | | | | | | This fixes a segfault occurring when a name of the (invalid) form "domain..tld" is processed. test46 updated to cover this case. Follow-up to commit c990ead. Ref: https://github.com/curl/curl/pull/2440
* openssl: provide defines for argument typecasts to build warning-freeDaniel Stenberg2018-04-041-1/+9
| | | | ... as OpenSSL >= 1.1.0 and libressl >= 2.7.0 use different argument types.
* openssl: fix build with LibreSSL 2.7Bernard Spil2018-04-041-6/+9
| | | | | | | | | | - LibreSSL 2.7 implements (most of) OpenSSL 1.1 API Fixes #2319 Closes #2447 Closes #2448 Signed-off-by: Bernard Spil <brnrd@FreeBSD.org>
* cookie: store cookies per top-level-domain-specific hash tableLauri Kasanen2018-04-023-89/+159
| | | | | | This makes libcurl handle thousands of cookies much better and speedier. Closes #2440
* cookies: when reading from a file, only remove_expired onceLauri Kasanen2018-04-024-6/+12
| | | | | | This drops the cookie load time for 8k cookies from 178ms to 15ms. Closes #2441
* test1148: set a fixed locale for the testDaniel Stenberg2018-04-021-0/+4
| | | | | | | ...as otherwise it might use a different decimal sign. Bug: #2436 Reported-by: Oumph on github
* docs: fix CURLINFO_*_T examples use of CURL_FORMAT_CURL_OFF_TJay Satiro2018-03-316-6/+6
| | | | | | | | | - Put a percent sign before each CURL_FORMAT_CURL_OFF_T in printf. For example "%" CURL_FORMAT_CURL_OFF_T becomes %lld or similar. Bug: https://curl.haxx.se/mail/lib-2018-03/0140.html Reported-by: David L.
* cmake: Add advapi32 as explicit link library for win32Michał Janiszewski2018-03-271-0/+1
| | | | | ARM targets need advapi32 explicitly. Closes #2363
* TODO: connection cache sharing is now supporteDaniel Stenberg2018-03-271-2/+1
|
* travis: enable apt retry on failJay Satiro2018-03-261-0/+2
| | | | | | | | | This is a workaround for an unsolved travis issue that is causing CI instances to sporadically fail due to 'unable to connect' issues during apt stage. Ref: https://github.com/travis-ci/travis-ci/issues/8507 Ref: https://github.com/travis-ci/travis-ci/issues/9112#issuecomment-376305909
* runtests.pl: fix warning 'use of uninitialized value'Michael Kaufmann2018-03-261-1/+2
| | | | | | follow-up to a9a7b60 Closes #2428
* gitignore: ignore more generated filesDaniel Stenberg2018-03-242-5/+13
|
* threaded resolver: track resolver time and set suitable timeout valuesDaniel Stenberg2018-03-241-28/+39
| | | | | | | | | | In order to make curl_multi_timeout() return suitable "sleep" times even when there's no socket to wait for while the name is being resolved in a helper thread. It will increases the timeouts as time passes. Closes #2419
* openldap: fix for NULL return from ldap_get_attribute_ber()Howard Chu2018-03-231-1/+22
| | | | Closes #2399
* travis-ci: enable -Werror for CMake builds (#2418)Sergei Nikulov2018-03-221-1/+1
|
* cmake: avoid warn-as-error during config checks (#2411)Sergei Nikulov2018-03-221-11/+10
| | | | | | - Move the CURL_WERROR option processing after the configuration checks to avoid failures in case of warnings during the configuration checks. This is a partial fix for #2358
* timeval: remove compilation warning by casting (#2417)Sergei Nikulov2018-03-221-1/+1
| | | This is fixes #2358
* http2: read pending frames (including GOAWAY) in connection-checkDaniel Stenberg2018-03-221-13/+41
| | | | | | | | | | If a connection has received a GOAWAY frame while not being used, the function now reads frames off the connection before trying to reuse it to avoid reusing connections the server has told us not to use. Reported-by: Alex Baines Fixes #1967 Closes #2402
* CI: add lgtm.yml for tweaking lgtm.com analysisBas van Schaik2018-03-221-0/+10
| | | | Closes #2414
* CURLINFO_SSL_VERIFYRESULT.3: fix the example, add some textDaniel Stenberg2018-03-211-3/+5
| | | | | | Reported-by: Michal Trybus Fixes #2400
* TODO: expand ~/ in config filesDaniel Stenberg2018-03-211-0/+8
| | | | Closes #2317
* cookie.d: mention that "-" as filename means stdinDaniel Stenberg2018-03-201-1/+2
| | | | | Reported-by: Dongliang Mu Fixes #2410
* CURLINFO_COOKIELIST.3: made the example not leak memoryDaniel Stenberg2018-03-201-4/+5
| | | | Reported-by: Muz Dima