summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* make: fix "make distclean"bagder/distcleanDaniel Stenberg2017-11-242-9/+3
| | | | Fixes #2097
* RELEASE-NOTES: synced with 31f18d272Daniel Stenberg2017-11-231-9/+31
|
* connect: improve the bind error messageJay Satiro2017-11-231-0/+4
| | | | | | | | | | eg consider a non-existent interface eth8, curl --interface eth8 Before: curl: (45) Could not resolve host: eth8 After: curl: (45) Couldn't bind to 'eth8' Bug: https://github.com/curl/curl/issues/2104 Reported-by: Alfonso Martone
* examples/rtsp: clear RANGE again after useDaniel Stenberg2017-11-231-0/+3
| | | | | Fixes #2106 Reported-by: youngchopin on github
* test1264: verify URL with space in host name being rejectedMichael Kaufmann2017-11-222-1/+37
|
* url: reject ASCII control characters and space in host namesDaniel Stenberg2017-11-223-48/+47
| | | | | | | | | | Host names like "127.0.0.1 moo" would otherwise be accepted by some getaddrinfo() implementations. Updated test 1034 and 1035 accordingly. Fixes #2073 Closes #2092
* Curl_open: fix OOM return error correctlyDaniel Stenberg2017-11-211-20/+19
| | | | Closes #2098
* http2: fix "Value stored to 'end' is never read" scan-build errorDaniel Stenberg2017-11-211-1/+0
|
* http2: fix "Value stored to 'hdbuf' is never read" scan-build errorDaniel Stenberg2017-11-211-2/+0
|
* openssl: fix "Value stored to 'rc' is never read" scan-build errorDaniel Stenberg2017-11-211-2/+2
|
* mime: fix "Value stored to 'sz' is never read" scan-build errorDaniel Stenberg2017-11-211-2/+0
|
* Curl_llist_remove: fix potential NULL pointer derefDaniel Stenberg2017-11-211-1/+5
| | | | Fixes a scan-build warning.
* ntlm: remove unnecessary NULL-check to please scan-buildDaniel Stenberg2017-11-211-2/+1
|
* BUGS: spellcheckedDaniel Stenberg2017-11-201-4/+4
|
* examples/curlx: Fix code stylefmmedeiros2017-11-181-1/+2
| | | | | | - Add braces around multi-line if statement. Closes https://github.com/curl/curl/pull/2096
* resolve: allow IP address within [] bracketsDaniel Stenberg2017-11-175-3/+74
| | | | | | | | | | | ... so that IPv6 addresses can be passed like they can for connect-to and how they're used in URLs. Added test 1324 to verify Reported-by: Alex Malinovich Fixes #2087 Closes #2091
* macOS: Fix missing connectx function with Xcode version older than 9.0Pavol Markovic2017-11-151-5/+8
| | | | | | | | | | | The previous fix https://github.com/curl/curl/pull/1788 worked just for Xcode 9. This commit extends the fix to older Xcode versions effectively by not using connectx function. Fixes https://github.com/curl/curl/issues/1330 Fixes https://github.com/curl/curl/issues/2080 Closes https://github.com/curl/curl/pull/1336 Closes #2082
* openssl: fix too broad use of HAVE_OPAQUE_EVP_PKEYDirk Feytons2017-11-151-2/+8
| | | | | Fixes #2079 Closes #2081
* TODO: ignore private IP addresses in PASV responseDaniel Stenberg2017-11-141-7/+14
| | | | Closes #1455
* RELEASE-NOTES: synced with ae7369b6dDaniel Stenberg2017-11-141-7/+20
|
* URL: return error on malformed URLs with junk after IPv6 bracketMichael Kaufmann2017-11-143-2/+45
| | | | | | Follow-up to aadb7c7. Verified by new test 1263. Closes #2072
* INTERNALS: we may use libidn2 now, not libidnDaniel Stenberg2017-11-141-1/+1
|
* zlib/brotli: only include header files in modules needing themPatrick Monnerat2017-11-133-12/+25
| | | | | | | | There is a conflict on symbol 'free_func' between openssl/crypto.h and zlib.h on AIX. This is an attempt to resolve it. Bug: https://curl.haxx.se/mail/lib-2017-11/0032.html Reported-By: Michael Felt
* SMB: fix uninitialized local variableDaniel Stenberg2017-11-131-1/+1
| | | | Reported-by: Brian Carpenter
* connect.c: remove executable bit on fileOrgad Shaneh2017-11-121-0/+0
| | | | Closes #2071
* README.md: fixed layouthsiao yi2017-11-121-0/+1
| | | | Closes #2069
* setopt: split out curl_easy_setopt() to its own fileDaniel Stenberg2017-11-106-2566/+2640
| | | | | | ... to make url.c smaller. Closes #1944
* cmake: Add missing setmode checkJohn Starks2017-11-101-0/+1
| | | | | | | Ensure HAVE_SETMODE is set to 1 on OSes that have setmode. Without this, curl will corrupt binary files when writing them to stdout on Windows. Closes https://github.com/curl/curl/pull/2067
* curl_share_setopt: va_end was not called if conncache errorsDaniel Stenberg2017-11-101-1/+1
| | | | CID 984459, detected by Coverity
* cmake: Correctly include curl.rc in Windows builds (#2064)John Starks2017-11-101-1/+1
| | | Update CMakeLists.txt to add curl.rc to the correct list.
* RELEASE-NOTES: synced with 32828cc4fDaniel Stenberg2017-11-091-5/+26
|
* --interface: add support for Linux VRFLuca Boccassi2017-11-092-24/+32
| | | | | | | | | | | | | The --interface command (CURLOPT_INTERFACE option) already uses SO_BINDTODEVICE on Linux, but it tries to parse it as an interface or IP address first, which fails in case the user passes a VRF. Try to use the socket option immediately and parse it as a fallback instead. Update the documentation to mention this feature, and that it requires the binary to be ran by root or with CAP_NET_RAW capabilities for this to work. Closes #2024
* curl_share_setopt.3: document CURL_LOCK_DATA_CONNECTDaniel Stenberg2017-11-091-1/+8
| | | | Closes #2043
* examples: add shared-connection-cacheDaniel Stenberg2017-11-091-1/+2
|
* test1554: verify connection cache sharingDaniel Stenberg2017-11-095-15/+193
|
* share: add support for sharing the connection cacheDaniel Stenberg2017-11-0910-128/+230
|
* imap: deal with commands case insensitivelyDaniel Stenberg2017-11-091-11/+11
| | | | | | | As documented in RFC 3501 section 9: https://tools.ietf.org/html/rfc3501#section-9 Closes #2061
* connect: store IPv6 connection status after valid connectionDaniel Stenberg2017-11-091-4/+3
| | | | | | | | ... previously it would store it already in the happy eyeballs stage which could lead to the IPv6 bit being set for an IPv4 connection, leading to curl not wanting to do EPSV=>PASV for FTP transfers. Closes #2053
* curl_multi_fdset.3: emphasize curl_multi_timeoutDaniel Stenberg2017-11-091-4/+5
| | | | | ... even when there's no socket to wait for, the timeout can still be very short.
* content_encoding: fix inflate_stream for no bytes availableJay Satiro2017-11-091-4/+6
| | | | | | | | | | | | | | | | | | | - Don't call zlib's inflate() when avail_in stream bytes is 0. This is a follow up to the parent commit 19e66e5. Prior to that change libcurl's inflate_stream could call zlib's inflate even when no bytes were available, causing inflate to return Z_BUF_ERROR, and then inflate_stream would treat that as a hard error and return CURLE_BAD_CONTENT_ENCODING. According to the zlib FAQ, Z_BUF_ERROR is not fatal. This bug would happen randomly since packet sizes are arbitrary. A test of 10,000 transfers had 55 fail (ie 0.55%). Ref: https://zlib.net/zlib_faq.html#faq05 Closes https://github.com/curl/curl/pull/2060
* content_encoding: do not write 0 length dataPatrick Monnerat2017-11-071-2/+2
|
* fnmatch: remove dead codeDaniel Stenberg2017-11-061-6/+1
| | | | | | | There was a duplicate check for backslashes in the setcharset() function. Coverity CID 1420611
* url: remove unncessary NULL-checkDaniel Stenberg2017-11-061-3/+2
| | | | | | | Since 'conn' won't be NULL in there and we also access the pointer in there without the check. Coverity CID 1420610
* src/Makefile.m32: fix typo in brotli lib customizationViktor Szakats2017-11-061-1/+1
| | | | Ref cc1f4436099decb9d1a7034b2bb773a9f8379d31
* Makefile.m32: allow to customize brotli libsViktor Szakats2017-11-052-3/+13
| | | | | | It adds the ability to link against static brotli libs. Also fix brotli include path.
* travis: add a job with brotli enabledPatrick Monnerat2017-11-051-0/+18
|
* Makefile.m32: add brotli supportViktor Szakats2017-11-052-2/+28
|
* HTTP: implement Brotli content encodingPatrick Monnerat2017-11-0521-32/+633
| | | | | | | | | | | | This uses the brotli external library (https://github.com/google/brotli). Brotli becomes a feature: additional curl_version_info() bit and structure fields are provided for it and CURLVERSION_NOW bumped. Tests 314 and 315 check Brotli content unencoding with correct and erroneous data. Some tests are updated to accomodate with the now configuration dependent parameters of the Accept-Encoding header.
* HTTP: support multiple Content-EncodingsPatrick Monnerat2017-11-0511-281/+734
| | | | | | | | | | This is implemented as an output streaming stack of unencoders, the last calling the client write procedure. New test 230 checks this feature. Bug: https://github.com/curl/curl/pull/2002 Reported-By: Daniel Bankhead
* url: remove arg value check from CURLOPT_SSH_AUTH_TYPESJay Satiro2017-11-041-4/+1
| | | | | | | | | | Since CURLSSH_AUTH_ANY (aka CURLSSH_AUTH_DEFAULT) is ~0 an arg value check on this option is incorrect; we have to accept any value. Prior to this change since f121575 (7.56.1+) CURLOPT_SSH_AUTH_TYPES erroneously rejected CURLSSH_AUTH_ANY with CURLE_BAD_FUNCTION_ARGUMENT. Bug: https://github.com/curl/curl/commit/f121575#commitcomment-25347120