]> granicus.if.org Git - curl/log
curl
6 years agowinbuild: In MakefileBuild.vc fix typo DISTDIR->DIRDIST
richardthe3rd [Thu, 24 May 2018 20:35:38 +0000 (21:35 +0100)]
winbuild: In MakefileBuild.vc fix typo DISTDIR->DIRDIST

Change requirement from $(DISTDIR) to $(DIRDIST)

closes #2603

6 years agowinbuild: only delete OUTFILE if it exists
richardthe3rd [Thu, 24 May 2018 14:11:44 +0000 (15:11 +0100)]
winbuild: only delete OUTFILE if it exists

This removes the slightly annoying "Could not file LIBCURL_OBJS.inc" and
"Could not find CURL_OBJS.inc.inc" message when building into a clean
folder.

closes #2602

6 years agocontent_encoding: handle zlib versions too old for Z_BLOCK
Alejandro R. Sedeño [Fri, 25 May 2018 02:08:04 +0000 (22:08 -0400)]
content_encoding: handle zlib versions too old for Z_BLOCK

Fallback on Z_SYNC_FLUSH when Z_BLOCK is not available.

Fixes #2606
Closes #2608

6 years agomulti: provide a socket to wait for in Curl_protocol_getsock
Daniel Stenberg [Wed, 23 May 2018 22:21:37 +0000 (00:21 +0200)]
multi: provide a socket to wait for in Curl_protocol_getsock

... even when there's no protocol specific handler setup.

Bug: https://curl.haxx.se/mail/lib-2018-05/0062.html
Reported-by: Sean Miller
Closes #2600

6 years agohttpauth: add support for Bearer tokens
Linus Lewandowski [Tue, 22 May 2018 10:28:41 +0000 (12:28 +0200)]
httpauth: add support for Bearer tokens

Closes #2102

6 years agoTODO: CURLINFO_PAUSE_STATE
Daniel Stenberg [Thu, 24 May 2018 18:35:39 +0000 (20:35 +0200)]
TODO: CURLINFO_PAUSE_STATE

Closes #2588

6 years agocmake: set -d postfix for debug builds if not specified
Sergei Nikulov [Wed, 23 May 2018 21:37:53 +0000 (00:37 +0300)]
cmake: set -d postfix for debug builds if not specified
       using -DCMAKE_DEBUG_POSTFIX explicitly

       fixes #2121, obsoletes #2384

6 years agoconfigure: add basic test of --with-ssl prefix
Daniel Stenberg [Wed, 23 May 2018 12:26:49 +0000 (14:26 +0200)]
configure: add basic test of --with-ssl prefix

When given a prefix, the $PREFIX_OPENSSL/lib/openssl.pc or
$PREFIX_OPENSSL/include/openssl/ssl.h files must be present or cause an
error. Helps users detect when giving configure the wrong path.

Reported-by: Oleg Pudeyev
Assisted-by: Per Malmberg
Fixes #2580

6 years agohttp resume: skip body if http code 416 (range error) is ignored.
Patrick Monnerat [Tue, 22 May 2018 11:23:02 +0000 (13:23 +0200)]
http resume: skip body if http code 416 (range error) is ignored.

This avoids appending error data to already existing good data.

Test 92 is updated to match this change.
New test 1156 checks all combinations of --range/--resume, --fail,
Content-Range header and http status code 200/416.

Fixes #1163
Reported-By: Ithubg on github
Closes #2578

6 years agotftp: make sure error is zero terminated before printfing it
Daniel Stenberg [Tue, 22 May 2018 08:10:39 +0000 (10:10 +0200)]
tftp: make sure error is zero terminated before printfing it

6 years agoconfigure: add missing m4/ax_compile_check_sizeof.m4
Daniel Stenberg [Tue, 22 May 2018 06:03:06 +0000 (08:03 +0200)]
configure: add missing m4/ax_compile_check_sizeof.m4

follow-up to mistake in 6876ccf90b4

6 years agoschannel: make CAinfo parsing resilient to CR/LF
Johannes Schindelin [Mon, 21 May 2018 22:01:08 +0000 (00:01 +0200)]
schannel: make CAinfo parsing resilient to CR/LF

OpenSSL has supported --cacert for ages, always accepting LF-only line
endings ("Unix line endings") as well as CR/LF line endings ("Windows
line endings").

When we introduced support for --cacert also with Secure Channel (or in
cURL speak: "WinSSL"), we did not take care to support CR/LF line
endings, too, even if we are much more likely to receive input in that
form when using Windows.

Let's fix that.

Happily, CryptQueryObject(), the function we use to parse the ca-bundle,
accepts CR/LF input already, and the trailing LF before the END
CERTIFICATE marker catches naturally any CR/LF line ending, too. So all
we need to care about is the BEGIN CERTIFICATE marker. We do not
actually need to verify here that the line ending is CR/LF. Just
checking for a CR or an LF is really plenty enough.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Closes https://github.com/curl/curl/pull/2592

6 years agoCURLOPT_ACCEPT_ENCODING.3: add brotli and clarify a bit
Daniel Stenberg [Tue, 22 May 2018 06:23:30 +0000 (08:23 +0200)]
CURLOPT_ACCEPT_ENCODING.3: add brotli and clarify a bit

6 years agoRELEASE-NOTES: synced
Daniel Stenberg [Mon, 21 May 2018 22:01:13 +0000 (00:01 +0200)]
RELEASE-NOTES: synced

6 years agoKNOWN_BUGS: mention the -O with %-encoded file names
Daniel Stenberg [Mon, 21 May 2018 21:43:36 +0000 (23:43 +0200)]
KNOWN_BUGS: mention the -O with %-encoded file names

Closes #2573

6 years agochecksrc: make sure sizeof() is used *with* parentheses
Daniel Stenberg [Fri, 11 May 2018 21:40:58 +0000 (23:40 +0200)]
checksrc: make sure sizeof() is used *with* parentheses

... and unify the source code to adhere.

Closes #2563

6 years agocurl: added --styled-output
Daniel Stenberg [Thu, 17 May 2018 12:09:17 +0000 (14:09 +0200)]
curl: added --styled-output

It is enabled by default, so --no-styled-output will switch off the
detection/use of bold headers.

Closes #2538

6 years agocurl: show headers in bold
Daniel Stenberg [Thu, 17 May 2018 11:56:35 +0000 (13:56 +0200)]
curl: show headers in bold

The feature is only enabled if the output is believed to be a tty.

-J: There's some minor differences and improvements in -J handling, as
now J should work with -i and it actually creates a file first using the
initial name and then *renames* that to the one found in
Content-Disposition (if any).

-i: only shows headers for HTTP transfers now (as documented).
Previously it would also show for pieces of the transfer that were HTTP
(for example when doing FTP over a HTTP proxy).

-i: now shows trailers as well. Previously they were not shown at all.

--libcurl: the CURLOPT_HEADER is no longer set, as the header output is
now done in the header callback.

6 years agoconfigure: compile-time SIZEOF checks
Daniel Stenberg [Mon, 21 May 2018 17:54:16 +0000 (19:54 +0200)]
configure: compile-time SIZEOF checks

... instead of exeucting code to get the size. Removes the use of
LD_LIBRARY_PATH for this.

Fixes #2586
Closes #2589
Reported-by: Bernhard Walle
6 years agoconfigure: replace AC_TRY_RUN with CURL_RUN_IFELSE
Daniel Stenberg [Sat, 19 May 2018 09:24:33 +0000 (11:24 +0200)]
configure: replace AC_TRY_RUN with CURL_RUN_IFELSE

... and export LD_LIBRARY_PATH properly. This is a follow-up from
2d4c215.

Fixes #2586
Reported-by: Bernhard Walle
6 years agodocs: clarify CURLOPT_HTTPGET somewhat
Daniel Stenberg [Mon, 21 May 2018 08:26:24 +0000 (10:26 +0200)]
docs: clarify CURLOPT_HTTPGET somewhat

Reported-by: bsammon on github
Fixes #2590

6 years agocurl_fnmatch: only allow two asterisks for matching
Daniel Stenberg [Fri, 18 May 2018 14:48:13 +0000 (16:48 +0200)]
curl_fnmatch: only allow two asterisks for matching

The previous limit of 5 can still end up in situation that takes a very
long time and consumes a lot of CPU.

If there is still a rare use case for this, a user can provide their own
fnmatch callback for a version that allows a larger set of wildcards.

This commit was triggered by yet another OSS-Fuzz timeout due to this.
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8369

Closes #2587

6 years agochecksrc: fix too long line
Daniel Stenberg [Fri, 18 May 2018 15:56:18 +0000 (17:56 +0200)]
checksrc: fix too long line

follow-up to e05ad5d

6 years agodocs: mention HAproxy protocol "version 1"
Aleks [Fri, 18 May 2018 15:47:47 +0000 (17:47 +0200)]
docs: mention HAproxy protocol "version 1"

...as there's also a version 2.

Closes #2579

6 years agoexamples/progressfunc: make it build on older libcurls
Daniel Stenberg [Fri, 18 May 2018 08:28:17 +0000 (10:28 +0200)]
examples/progressfunc: make it build on older libcurls

This example was changed in ce2140a8c1 to use the new microsecond based
getinfo option. This change makes it conditionally keep using the older
option so that the example still builds with older libcurl versions.

Closes #2584

6 years agostub_gssapi: fix numerous 'unused parameter' warnings
Daniel Stenberg [Thu, 17 May 2018 22:06:59 +0000 (00:06 +0200)]
stub_gssapi: fix numerous 'unused parameter' warnings

follow-up to d9e92fd9fd1d

6 years agogetinfo: add microsecond precise timers for various intervals
Philip Prindeville [Thu, 17 May 2018 11:37:36 +0000 (13:37 +0200)]
getinfo: add microsecond precise timers for various intervals

Provide a set of new timers that return the time intervals using integer
number of microseconds instead of floats.

The new info names are as following:

CURLINFO_APPCONNECT_TIME_T
CURLINFO_CONNECT_TIME_T
CURLINFO_NAMELOOKUP_TIME_T
CURLINFO_PRETRANSFER_TIME_T
CURLINFO_REDIRECT_TIME_T
CURLINFO_STARTTRANSFER_TIME_T
CURLINFO_TOTAL_TIME_T

Closes #2495

6 years agoopenssl: acknowledge --tls-max for default version too
Daniel Stenberg [Tue, 15 May 2018 08:41:25 +0000 (10:41 +0200)]
openssl: acknowledge --tls-max for default version too

... previously it only used the max setting if a TLS version was also
explicitly asked for.

Reported-by: byte_bucket
Fixes #2571
Closes #2572

6 years agobump: start working on the pending 7.61.0
Daniel Stenberg [Thu, 17 May 2018 07:42:44 +0000 (09:42 +0200)]
bump: start working on the pending 7.61.0

6 years agotests/libtest/Makefile: Do not unconditionally add gcc-specific flags
Dagobert Michelsen [Wed, 16 May 2018 07:42:39 +0000 (09:42 +0200)]
tests/libtest/Makefile: Do not unconditionally add gcc-specific flags

The warning flag leads e.g. Sun Studio compiler to bail out.

Closes #2576

6 years agoschannel_verify: fix build for non-schannel
Daniel Stenberg [Wed, 16 May 2018 08:12:13 +0000 (10:12 +0200)]
schannel_verify: fix build for non-schannel

6 years agorand: fix typo
Jay Satiro [Wed, 16 May 2018 06:18:50 +0000 (02:18 -0400)]
rand: fix typo

6 years agoschannel: disable manual verify if APIs not available
Jay Satiro [Wed, 16 May 2018 06:02:29 +0000 (02:02 -0400)]
schannel: disable manual verify if APIs not available

.. because original MinGW and old compilers do not have the Windows API
definitions needed to support manual verification.

6 years agoschannel: disable client cert option if APIs not available
Archangel_SDY [Mon, 23 Apr 2018 14:12:43 +0000 (22:12 +0800)]
schannel: disable client cert option if APIs not available

Original MinGW targets Windows 2000 by default, which lacks some APIs and
definitions for this feature. Disable it if these APIs are not available.

Closes https://github.com/curl/curl/pull/2522

6 years agoRELEASE-NOTES: 7.60.0 release curl-7_60_0
Daniel Stenberg [Sun, 13 May 2018 21:33:37 +0000 (23:33 +0200)]
RELEASE-NOTES: 7.60.0 release

6 years agoTHANKS: added people from the curl 7.60.0 release
Daniel Stenberg [Sun, 13 May 2018 21:32:42 +0000 (23:32 +0200)]
THANKS: added people from the curl 7.60.0 release

6 years agodocs/libcurl/index.html: removed
Daniel Stenberg [Tue, 15 May 2018 14:41:55 +0000 (16:41 +0200)]
docs/libcurl/index.html: removed

The HTML files are long gone from the dist, now remove the last HTML
file pointing to those missing files.

d

6 years agohttp2: remove unused variable
steini2000 [Mon, 14 May 2018 15:49:06 +0000 (17:49 +0200)]
http2: remove unused variable

Closes #2570

6 years agohttp2: use easy handle of stream for logging
steini2000 [Mon, 14 May 2018 15:40:48 +0000 (17:40 +0200)]
http2: use easy handle of stream for logging

6 years agogcc: disable picky gcc-8 function pointer warnings in two places
Daniel Stenberg [Mon, 14 May 2018 07:55:34 +0000 (09:55 +0200)]
gcc: disable picky gcc-8 function pointer warnings in two places

Reported-by: Rikard Falkeborn
Bug: #2560
Closes #2569

6 years agohttp2: use the correct function pointer typedef
Daniel Stenberg [Mon, 14 May 2018 07:38:56 +0000 (09:38 +0200)]
http2: use the correct function pointer typedef

Fixes gcc-8 picky compiler warnings
Reported-by: Rikard Falkeborn
Bug: #2560
Closes #2568

6 years agoCODE_STYLE: mention return w/o parens, but sizeof with
Daniel Stenberg [Mon, 14 May 2018 08:19:52 +0000 (10:19 +0200)]
CODE_STYLE: mention return w/o parens, but sizeof with

... and remove the github markdown syntax so that it renders better on
the web site. Also, don't use back-ticks inlined to allow the CSS to
highlight source code better.

6 years agoexamples: Fix format specifiers
Rikard Falkeborn [Sun, 6 May 2018 17:44:03 +0000 (19:44 +0200)]
examples: Fix format specifiers

Closes #2561

6 years agotool: Fix format specifiers
Rikard Falkeborn [Fri, 11 May 2018 15:34:55 +0000 (17:34 +0200)]
tool: Fix format specifiers

6 years agontlm: Fix format specifiers
Rikard Falkeborn [Sat, 5 May 2018 20:09:04 +0000 (22:09 +0200)]
ntlm: Fix format specifiers

6 years agotests: Fix format specifiers
Rikard Falkeborn [Sun, 6 May 2018 19:20:32 +0000 (21:20 +0200)]
tests: Fix format specifiers

6 years agolib: Fix format specifiers
Rikard Falkeborn [Sun, 6 May 2018 18:32:24 +0000 (20:32 +0200)]
lib: Fix format specifiers

6 years agocontributors.sh: use "on github", not at
Daniel Stenberg [Mon, 14 May 2018 06:52:41 +0000 (08:52 +0200)]
contributors.sh: use "on github", not at

6 years agohttp2: getsock fix for uploads
Daniel Stenberg [Sat, 12 May 2018 19:58:46 +0000 (21:58 +0200)]
http2: getsock fix for uploads

When there's an upload in progress, make sure to wait for the socket to
become writable.

Detected-by: steini2000 on github
Bug: #2520
Closes #2567

6 years agopingpong: fix response cache memcpy overflow
Daniel Stenberg [Fri, 23 Mar 2018 22:30:04 +0000 (23:30 +0100)]
pingpong: fix response cache memcpy overflow

Response data for a handle with a large buffer might be cached and then
used with the "closure" handle when it has a smaller buffer and then the
larger cache will be copied and overflow the new smaller heap based
buffer.

Reported-by: Dario Weisser
CVE: CVE-2018-1000300
Bug: https://curl.haxx.se/docs/adv_2018-82c2.html

6 years agohttp: restore buffer pointer when bad response-line is parsed
Daniel Stenberg [Sat, 24 Mar 2018 22:47:41 +0000 (23:47 +0100)]
http: restore buffer pointer when bad response-line is parsed

... leaving the k->str could lead to buffer over-reads later on.

CVE: CVE-2018-1000301
Assisted-by: Max Dymond
Detected by OSS-Fuzz.
Bug: https://curl.haxx.se/docs/adv_2018-b138.html
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7105

6 years agocookies: do not take cookie name as a parameter
Patrick Monnerat [Sat, 12 May 2018 23:23:10 +0000 (01:23 +0200)]
cookies: do not take cookie name as a parameter

RFC 6265 section 4.2.1 does not set restrictions on cookie names.
This is a follow-up to commit 7f7fcd0.
Also explicitly check proper syntax of cookie name/value pair.

New test 1155 checks that cookie names are not reserved words.

Reported-By: anshnd at github
Fixes #2564
Closes #2566

6 years agosmb: reject negative file sizes
Daniel Stenberg [Sat, 12 May 2018 20:24:25 +0000 (22:24 +0200)]
smb: reject negative file sizes

Assisted-by: Max Dymond
Detected by OSS-Fuzz
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8245

6 years agosetup_transfer: deal with both sockets being -1
Daniel Stenberg [Fri, 11 May 2018 21:54:26 +0000 (23:54 +0200)]
setup_transfer: deal with both sockets being -1

Detected by Coverity; CID 1435559.  Follow-up to f8d608f38d00. It would
index the array with -1 if neither index was a socket.

6 years agotravis: add build using NSS
Daniel Stenberg [Thu, 10 May 2018 06:56:46 +0000 (08:56 +0200)]
travis: add build using NSS

Closes #2558

6 years agoopenssl: change FILE ops to BIO ops
Sunny Purushe [Tue, 17 Apr 2018 08:50:09 +0000 (04:50 -0400)]
openssl: change FILE ops to BIO ops

To make builds with VS2015 work. Recent changes in VS2015 _IOB_ENTRIES
handling is causing problems. This fix changes the OpenSSL backend code
to use BIO functions instead of FILE I/O functions to circumvent those
problems.

Closes #2512

6 years agotravis: add a build using WolfSSL
Daniel Stenberg [Tue, 24 Apr 2018 14:16:25 +0000 (16:16 +0200)]
travis: add a build using WolfSSL

Assisted-by: Dan Fandrich
Closes #2528

6 years agoRELEASE-NOTES: typo
Daniel Stenberg [Mon, 7 May 2018 12:30:18 +0000 (14:30 +0200)]
RELEASE-NOTES: typo

6 years agoRELEASE-NOTES: synced
Daniel Stenberg [Mon, 7 May 2018 08:32:42 +0000 (10:32 +0200)]
RELEASE-NOTES: synced

6 years agoURLs: fix one more http url
Daniel Gustafsson [Sat, 5 May 2018 19:27:09 +0000 (21:27 +0200)]
URLs: fix one more http url

This file wasn't included in commit 4af40b3646d3b09 which updated all
haxx.se http urls to https. The file was committed prior to that update,
but may have been merged after it and hence didn't get updated.

Closes #2550

6 years agogithub/lock: auto-lock closed issues after 90 days of inactivity
Daniel Stenberg [Sat, 5 May 2018 12:05:57 +0000 (14:05 +0200)]
github/lock: auto-lock closed issues after 90 days of inactivity

6 years agovtls: fix missing commas
Daniel Stenberg [Fri, 4 May 2018 21:02:36 +0000 (23:02 +0200)]
vtls: fix missing commas

follow-up to e66cca046cef

6 years agovtls: use unified "supports" bitfield member in backends
Daniel Stenberg [Fri, 4 May 2018 10:10:39 +0000 (12:10 +0200)]
vtls: use unified "supports" bitfield member in backends

... instead of previous separate struct fields, to make it easier to
extend and change individual backends without having to modify them all.

closes #2547

6 years agotransfer: don't unset writesockfd on setup of multiplexed conns
Daniel Stenberg [Fri, 4 May 2018 14:41:03 +0000 (16:41 +0200)]
transfer: don't unset writesockfd on setup of multiplexed conns

Curl_setup_transfer() can be called to setup a new individual transfer
over a multiplexed connection so it shouldn't unset writesockfd.

Bug: #2520
Closes #2549

6 years agoconfigure: put CURLDEBUG and DEBUGBUILD in lib/curl_config.h
Frank Gevaerts [Fri, 4 May 2018 12:31:16 +0000 (14:31 +0200)]
configure: put CURLDEBUG and DEBUGBUILD in lib/curl_config.h

They are removed from the compiler flags.

This ensures that make dependency tracking will force a rebuild whenever
configure --enable-debug or --enable-curldebug changes.

Closes #2548

6 years agohttp: don't set the "rewind" flag when not uploading anything
Daniel Stenberg [Fri, 4 May 2018 09:06:26 +0000 (11:06 +0200)]
http: don't set the "rewind" flag when not uploading anything

It triggers an assert.

Detected by OSS-Fuzz
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8144
Closes #2546

6 years agotravis: add an mbedtls build
Daniel Stenberg [Wed, 25 Apr 2018 07:20:08 +0000 (09:20 +0200)]
travis: add an mbedtls build

Closes #2531

6 years agoconfigure: only check for CA bundle for file-using SSL backends
Daniel Stenberg [Thu, 3 May 2018 12:54:10 +0000 (14:54 +0200)]
configure: only check for CA bundle for file-using SSL backends

When only building with SSL backends that don't use the CA bundle file
(by default), skip the check.

Fixes #2543
Fixes #2180
Closes #2545

6 years agossh-libssh.c: fix left shift compiler warning
Daniel Stenberg [Thu, 3 May 2018 20:16:57 +0000 (22:16 +0200)]
ssh-libssh.c: fix left shift compiler warning

ssh-libssh.c:2429:21: warning: result of '1 << 31' requires 33 bits to
represent, but 'int' only has 32 bits [-Wshift-overflow=]

'len' will never be that big anyway so I converted the run-time check to
a regular assert.

6 years agoURL: fix ASCII dependency in strcpy_url and strlen_url
Stephan Mühlstrasser [Thu, 26 Apr 2018 08:15:26 +0000 (10:15 +0200)]
URL: fix ASCII dependency in strcpy_url and strlen_url

Commit 3c630f9b0af097663a64e5c875c580aa9808a92b partially reverted the
changes from commit dd7521bcc1b7a6fcb53c31f9bd1192fcc884bd56 because of
the problem that strcpy_url() was modified unilaterally without also
modifying strlen_url(). As a consequence strcpy_url() was again
depending on ASCII encoding.

This change fixes strlen_url() and strcpy_url() in parallel to use a
common host-encoding independent criterion for deciding whether an URL
character must be %-escaped.

Closes #2535

6 years agodocs: remove extraneous commas in man pages
Denis Ollier [Wed, 2 May 2018 08:03:46 +0000 (10:03 +0200)]
docs: remove extraneous commas in man pages

Closes #2544

6 years agoRELEASE-NOTES: synced
Daniel Stenberg [Thu, 3 May 2018 13:14:03 +0000 (15:14 +0200)]
RELEASE-NOTES: synced

6 years agoRevert "TODO: remove configure --disable-pthreads"
Daniel Stenberg [Thu, 3 May 2018 13:05:05 +0000 (15:05 +0200)]
Revert "TODO: remove configure --disable-pthreads"

This reverts commit d5d683a97f9765bddfd964fe32e137aa6e703ed3.

--disable-pthreads can be used to disable pthreads and get the threaded
resolver to use the windows threading when building with mingw.

6 years agovtls: don't define MD5_DIGEST_LENGTH for wolfssl
Daniel Stenberg [Mon, 30 Apr 2018 13:34:26 +0000 (15:34 +0200)]
vtls: don't define MD5_DIGEST_LENGTH for wolfssl

... as it defines it (too)

6 years agoTODO: remove configure --disable-pthreads
Daniel Stenberg [Tue, 1 May 2018 09:38:16 +0000 (11:38 +0200)]
TODO: remove configure --disable-pthreads

6 years agowolfssl: Fix non-blocking connect
David Garske [Wed, 11 Apr 2018 16:46:08 +0000 (09:46 -0700)]
wolfssl: Fix non-blocking connect

Closes https://github.com/curl/curl/pull/2542

6 years agoCURLOPT_URL.3: add ENCODING section [ci skip]
Daniel Stenberg [Mon, 30 Apr 2018 12:31:04 +0000 (14:31 +0200)]
CURLOPT_URL.3: add ENCODING section [ci skip]

Feedback-by: Michael Kilburn
6 years agoKNOWN_BUGS: Client cert with Issuer DN differs between backends
Daniel Stenberg [Mon, 30 Apr 2018 08:26:26 +0000 (10:26 +0200)]
KNOWN_BUGS: Client cert with Issuer DN differs between backends

Closes #1411

6 years agoKNOWN_BUGS: Passive transfer tries only one IP address
Daniel Stenberg [Mon, 30 Apr 2018 08:22:17 +0000 (10:22 +0200)]
KNOWN_BUGS: Passive transfer tries only one IP address

Closes #1508

6 years agoKNOWN_BUGS: --upload-file . hang if delay in STDIN
Daniel Stenberg [Mon, 30 Apr 2018 08:19:45 +0000 (10:19 +0200)]
KNOWN_BUGS: --upload-file . hang if delay in STDIN

Closes #2051

6 years agoKNOWN_BUGS: Connection information when using TCP Fast Open
Daniel Stenberg [Mon, 30 Apr 2018 08:17:10 +0000 (10:17 +0200)]
KNOWN_BUGS: Connection information when using TCP Fast Open

Closes #1332

6 years agotravis: enable libssh2 on both macos and Linux
Daniel Stenberg [Sun, 29 Apr 2018 22:22:08 +0000 (00:22 +0200)]
travis: enable libssh2 on both macos and Linux

It seems to not be detected by default anymore (which is a bug I
believe)

Closes #2541

6 years agoTODO: Support the clienthello extension
Daniel Stenberg [Sun, 29 Apr 2018 22:42:34 +0000 (00:42 +0200)]
TODO: Support the clienthello extension

Closes #2299

6 years agoTODO: CLOEXEC
Daniel Stenberg [Sun, 29 Apr 2018 22:10:45 +0000 (00:10 +0200)]
TODO: CLOEXEC

Closes #2252

6 years agotests: provide 'manual' as a feature to optionally require
Daniel Stenberg [Sat, 28 Apr 2018 22:24:49 +0000 (00:24 +0200)]
tests: provide 'manual' as a feature to optionally require

... and make test 1026 rely on that feature so that --disable-manual
builds don't cause test failures.

Reported-by: Max Dymond and Anders Roxell
Fixes #2533
Closes #2540

6 years agoCURLINFO_PROTOCOL.3: mention the existing defined names
Daniel Stenberg [Fri, 27 Apr 2018 09:35:25 +0000 (11:35 +0200)]
CURLINFO_PROTOCOL.3: mention the existing defined names

6 years agocookies: remove unused macro
Daniel Gustafsson [Thu, 26 Apr 2018 22:54:21 +0000 (00:54 +0200)]
cookies: remove unused macro

Commit 2bc230de63 made the macro MAX_COOKIE_LINE_TXT become unused,
so remove as it's not part of the published API.

Closes https://github.com/curl/curl/pull/2537

6 years agochecksrc: force indentation of lines after an else
Daniel Gustafsson [Wed, 25 Apr 2018 19:53:27 +0000 (21:53 +0200)]
checksrc: force indentation of lines after an else

This extends the INDENTATION case to also handle 'else' statements
and require proper indentation on the following line. Also fixes the
offending cases found in the codebase.

Closes #2532

6 years agohttp2: fix null pointer dereference in http2_connisdead
Daniel Stenberg [Thu, 26 Apr 2018 14:07:10 +0000 (16:07 +0200)]
http2: fix null pointer dereference in http2_connisdead

This function can get called on a connection that isn't setup enough to
have the 'recv_underlying' function pointer initialized so it would try
to call the NULL pointer.

Reported-by: Dario Weisser
Follow-up to db1b2c7fe9b093f8 (never shipped in a release)
Closes #2536

6 years agohttp2: get rid of another strstr()
Daniel Stenberg [Thu, 26 Apr 2018 08:41:21 +0000 (10:41 +0200)]
http2: get rid of another strstr()

Follow-up to 1514c44655e12e: replace another strstr() call done on a
buffer that might not be zero terminated - with a memchr() call, even if
we know the substring will be found.

Assisted-by: Max Dymond
Detected by OSS-Fuzz
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8021

Closes #2534

6 years agocyassl: adapt to libraries without TLS 1.0 support built-in
Daniel Stenberg [Wed, 25 Apr 2018 09:45:35 +0000 (11:45 +0200)]
cyassl: adapt to libraries without TLS 1.0 support built-in

WolfSSL doesn't enable it by default anymore

6 years agoconfigure: provide --with-wolfssl as an alias for --with-cyassl
Daniel Stenberg [Wed, 25 Apr 2018 07:04:25 +0000 (09:04 +0200)]
configure: provide --with-wolfssl as an alias for --with-cyassl

6 years agoRELEASE-NOTES: synced
Daniel Stenberg [Wed, 25 Apr 2018 13:37:54 +0000 (15:37 +0200)]
RELEASE-NOTES: synced

6 years agoos400.c: fix ASSIGNWITHINCONDITION checksrc warnings
Daniel Gustafsson [Mon, 23 Apr 2018 20:29:06 +0000 (22:29 +0200)]
os400.c: fix ASSIGNWITHINCONDITION checksrc warnings

All occurrences of assignment within conditional expression in
os400sys.c rewritten into two steps: first assignment and then the check
on the success of the assignment. Also adjust related incorrect brace
positions to match project indentation style.

This was spurred by seeing "if((inp = input_token))", but while in there
all warnings were fixed.

There should be no functional change from these changes.

Closes #2525

6 years agocookies: ensure that we have cookies before writing jar
Daniel Gustafsson [Tue, 24 Apr 2018 20:42:41 +0000 (22:42 +0200)]
cookies: ensure that we have cookies before writing jar

The jar should be written iff there are cookies, so ensure that we still
have cookies after expiration to avoid creating an empty file.

Closes #2529

6 years agostrcpy_url: only %-encode values >= 0x80
Daniel Stenberg [Wed, 25 Apr 2018 05:56:01 +0000 (07:56 +0200)]
strcpy_url: only %-encode values >= 0x80

OSS-Fuzz detected

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8000

Broke in dd7521bcc1b7

6 years agomime: avoid NULL pointer dereference risk
Daniel Stenberg [Tue, 24 Apr 2018 09:33:29 +0000 (11:33 +0200)]
mime: avoid NULL pointer dereference risk

Coverity detected, CID 1435120

Closes #2527

6 years agoctype: restore character classification for non-ASCII platforms
Stephan Mühlstrasser [Fri, 13 Apr 2018 12:28:55 +0000 (14:28 +0200)]
ctype: restore character classification for non-ASCII platforms

With commit 4272a0b0fc49a1ac0ceab5c4a365c9f6ab8bf8e2 curl-speficic
character classification macros and functions were introduced in
curl_ctype.[ch] to avoid dependencies on the locale. This broke curl on
non-ASCII, e.g. EBCDIC platforms. This change restores the previous set
of character classification macros when CURL_DOES_CONVERSIONS is
defined.

Closes #2494

6 years agoftplistparser: keep state between invokes
Daniel Stenberg [Thu, 19 Apr 2018 13:47:05 +0000 (15:47 +0200)]
ftplistparser: keep state between invokes

Fixes FTP wildcard parsing when done over a number of read buffers.

Regression from f786d1f14

Reported-by: wncboy on github
Fixes #2445
Closes #2526

6 years agoexamples/http2-upload: expand buffer to avoid silly warning
Daniel Stenberg [Tue, 24 Apr 2018 12:14:23 +0000 (14:14 +0200)]
examples/http2-upload: expand buffer to avoid silly warning

http2-upload.c:135:44: error: ‘%02d’ directive output may be truncated
writing between 2 and 11 bytes into a region of size between 8 and 17