]>
git.ipfire.org Git - thirdparty/curl.git/log
Daniel Stenberg [Mon, 9 Nov 2020 22:48:25 +0000 (23:48 +0100)]
http_proxy: use enum with state names for 'keepon'
To make the code clearer, change the 'keepon' from an int to an enum
with better state names.
Reported-by: Niranjan Hasabnis
Bug: https://curl.se/mail/lib-2020-11/0026.html
Closes #6193
Daniel Stenberg [Mon, 9 Nov 2020 15:24:13 +0000 (16:24 +0100)]
curl_easy_escape: limit output string length to 3 * max input
... instead of the limiting it to just the max input size. As every
input byte can be expanded to 3 output bytes, this could limit the input
string to 2.66 MB instead of the intended 8 MB.
Reported-by: Marc Schlatter
Closes #6192
Daniel Stenberg [Mon, 9 Nov 2020 14:59:35 +0000 (15:59 +0100)]
docs: document the 8MB input string limit
for curl_easy_escape and curl_easy_setopt()
The limit is there to catch mistakes and abuse. It is meant to be large
enough to allow virtually all "fine" use cases.
Reported-by: Marc Schlatter
Fixes #6190
Closes #6191
Daniel Stenberg [Mon, 9 Nov 2020 07:49:59 +0000 (08:49 +0100)]
mqttd: fclose test file when done
Reported-by: Marc Hörsken
Reviewed-by: Jay Satiro
Bug: #6058
Closes #6189
Daniel Stenberg [Mon, 9 Nov 2020 09:15:27 +0000 (10:15 +0100)]
RELEASE-NOTES: synced
Daniel Stenberg [Mon, 9 Nov 2020 09:15:02 +0000 (10:15 +0100)]
THANKS-filter: ignore autobuild links
Daniel Stenberg [Sat, 7 Nov 2020 17:26:38 +0000 (18:26 +0100)]
Revert "libcurl.pc: make it relocatable"
This reverts commit
3862c37b6373a55ca704171d45ba5ee91dec2c9f .
That fix should either be done differently or with an option.
Reported-by: asavah on github
Fixes #6157
Closes #6183
Daniel Stenberg [Mon, 9 Nov 2020 00:00:52 +0000 (01:00 +0100)]
examples/httpput: remove use of CURLOPT_PUT
It is deprecated and unnecessary since it already sets CURLOPT_UPLOAD.
Reported-by: Jeroen Ooms
Fixes #6186
Closes #6187
Daniel Stenberg [Sat, 7 Nov 2020 22:53:24 +0000 (23:53 +0100)]
Curl_pgrsStartNow: init speed limit time stamps at start
By setting the speed limit time stamps unconditionally at transfer
start, we can start off a transfer without speed limits and yet allow
them to get set during transfer and have an effect.
Reported-by: Kael1117 on github
Fixes #6162
Closes #6184
Daniel Stenberg [Sun, 8 Nov 2020 19:55:15 +0000 (20:55 +0100)]
ngtcp2: adapt to recent nghttp3 updates
'reset_stream' was added to the nghttp3_conn_callbacks struct
Closes #6185
Daniel Stenberg [Fri, 6 Nov 2020 23:33:16 +0000 (00:33 +0100)]
configure: pass -pthread to Libs.private for pkg-config
Reported-by: Cristian Morales Vega
Fixes #6168
Closes #6181
Daniel Stenberg [Sat, 7 Nov 2020 13:17:53 +0000 (14:17 +0100)]
altsvc: minimize variable scope and avoid "DEAD_STORE"
Closes #6182
Daniel Stenberg [Fri, 6 Nov 2020 08:28:49 +0000 (09:28 +0100)]
FAQ: remove "Why is there a HTTP/1.1 in my HTTP/2 request?"
This hasn't been the case for a while now, remove.
Daniel Stenberg [Fri, 6 Nov 2020 08:16:06 +0000 (09:16 +0100)]
FAQ: refresh "Why do I get "certificate verify failed"
Add more details, remove references to ancient curl version.
Daniel Stenberg [Thu, 5 Nov 2020 08:19:23 +0000 (09:19 +0100)]
test493: verify --hsts upgrade and that %{url_effective} reflects that
Closes #6175
Daniel Stenberg [Thu, 5 Nov 2020 08:18:52 +0000 (09:18 +0100)]
url: make sure an HSTS upgrade updates URL and scheme correctly
Closes #6175
Daniel Stenberg [Thu, 5 Nov 2020 08:17:58 +0000 (09:17 +0100)]
tool_operate: set HSTS with CURLOPT_HSTS to pass on filename
Closes #6175
Daniel Stenberg [Thu, 5 Nov 2020 08:17:21 +0000 (09:17 +0100)]
hsts: remove debug code leftovers
Closes #6175
Daniel Stenberg [Thu, 5 Nov 2020 12:06:00 +0000 (13:06 +0100)]
FAQ: refreshed
- remove a few ancient questions
- add configure with static libs question
- updated wording in several places
- lowercased curl
Closes #6177
Daniel Gustafsson [Thu, 5 Nov 2020 08:53:02 +0000 (09:53 +0100)]
examples: fix comment syntax
Commit
ac0a88fd2 accidentally added a stray character outside of the
comment which broke compilation. Fix by removing.
Reported-by: autobuild https://curl.se/dev/log.cgi?id=20201105084306-12742
Daniel Gustafsson [Thu, 5 Nov 2020 08:42:38 +0000 (09:42 +0100)]
hsts: Remove pointless call to free in errorpath
The line variable will always be NULL in the error path, so remove
the free call since it's pointless.
Closes #6170
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
Daniel Gustafsson [Thu, 5 Nov 2020 08:36:24 +0000 (09:36 +0100)]
docs: Fix various typos in documentation
Closes #6171
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
Daniel Stenberg [Thu, 5 Nov 2020 07:22:10 +0000 (08:22 +0100)]
copyright: fix year ranges
Follow-up from
4d2f8006777
Daniel Stenberg [Wed, 4 Nov 2020 13:03:01 +0000 (14:03 +0100)]
HISTORY: the new domain
Daniel Stenberg [Wed, 4 Nov 2020 13:02:01 +0000 (14:02 +0100)]
curl.se: new home
Closes #6172
Daniel Stenberg [Wed, 4 Nov 2020 22:56:12 +0000 (23:56 +0100)]
KNOWN_BUGS: FTPS with Schannel times out file list operation
Reported-by: bobmitchell1956 on github
Closes #5284
Daniel Stenberg [Wed, 4 Nov 2020 22:48:56 +0000 (23:48 +0100)]
KNOWN_BUGS: SMB tests fail with Python 2
Reported-by: Jay Satiro
Closes #5983
Daniel Stenberg [Wed, 4 Nov 2020 22:43:43 +0000 (23:43 +0100)]
KNOWN_BUGS: LDAPS with NSS is slow
Reported-by: nosajsnikta on github
Closes #5874
Sergei Nikulov [Wed, 14 Oct 2020 10:19:35 +0000 (13:19 +0300)]
travis: use ninja-build for CMake builds
Added package ninja-build to environment
Use ninja to speed up CMake builds
Closes #6077
Harry Sintonen [Tue, 3 Nov 2020 14:55:58 +0000 (16:55 +0200)]
rtsp: error out on empty Session ID, unified the code
Harry Sintonen [Tue, 3 Nov 2020 10:29:40 +0000 (12:29 +0200)]
rtsp: fixed the RTST Session ID mismatch in test 570
Closes #6161
Harry Sintonen [Tue, 3 Nov 2020 01:36:56 +0000 (03:36 +0200)]
rtsp: fixed Session ID comparison to refuse prefix
Closes #6161
Daniel Stenberg [Tue, 3 Nov 2020 15:46:04 +0000 (16:46 +0100)]
RELEASE-NOTES: synced
(forgot to update the list of contributors)
Daniel Stenberg [Tue, 3 Nov 2020 15:41:59 +0000 (16:41 +0100)]
RELEASE-NOTES: synced
Daniel Stenberg [Tue, 3 Nov 2020 07:22:54 +0000 (08:22 +0100)]
curlver: bumped to 7.74.0
Daniel Stenberg [Mon, 2 Nov 2020 22:17:01 +0000 (23:17 +0100)]
hsts: add read/write callbacks
- read/write callback options
- man pages for the 4 new setopts
- test 1915 verifies the callbacks
Closes #5896
Daniel Stenberg [Mon, 2 Nov 2020 22:17:01 +0000 (23:17 +0100)]
hsts: add support for Strict-Transport-Security
- enable in the build (configure)
- header parsing
- host name lookup
- unit tests for the above
- CI build
- CURL_VERSION_HSTS bit
- curl_version_info support
- curl -V output
- curl-config --features
- CURLOPT_HSTS_CTRL
- man page for CURLOPT_HSTS_CTRL
- curl --hsts (sets CURLOPT_HSTS_CTRL and works with --libcurl)
- man page for --hsts
- save cache to disk
- load cache from disk
- CURLOPT_HSTS
- man page for CURLOPT_HSTS
- added docs/HSTS.md
- fixed --version docs
- adjusted curl_easy_duphandle
Closes #5896
Sergei Nikulov [Wed, 14 Oct 2020 07:00:00 +0000 (10:00 +0300)]
CI/tests: enable test target on TravisCI for CMake builds
Added test-nonflaky target to CMake builds
Disabled test 1139 because the cmake build doesn't create docs/curl.1
Closes #6074
Daniel Stenberg [Tue, 3 Nov 2020 07:14:46 +0000 (08:14 +0100)]
tool_debug_cb: do not assume zero-terminated data
Follow-up to
d70a5b5a0f5e3
Daniel Stenberg [Mon, 2 Nov 2020 16:34:04 +0000 (17:34 +0100)]
sendf: move the verbose-check into Curl_debug
Saves us from having the same check done everywhere.
Closes #6159
Daniel Stenberg [Sun, 1 Nov 2020 22:26:04 +0000 (23:26 +0100)]
travis: use valgrind when running tests for debug builds
Except the non-x86 and sanitizer builds
Closes #6154
Daniel Stenberg [Mon, 2 Nov 2020 09:31:02 +0000 (10:31 +0100)]
header.d: fix syntax mistake
follow-up from
1144886f38fd0
Harry Sintonen [Sun, 1 Nov 2020 21:32:15 +0000 (23:32 +0200)]
gnutls: fix memory leaks (certfields memory wasn't released)
Closes #6153
Daniel Stenberg [Mon, 2 Nov 2020 07:26:40 +0000 (08:26 +0100)]
tests: add missing global_init/cleanup calls
Without the cleanup call in these test files, the mbedTLS backend leaks
memory.
Closes #6156
Daniel Stenberg [Sun, 1 Nov 2020 23:04:22 +0000 (00:04 +0100)]
tool_operate: --retry for HTTP 408 responses too
This was inadvertently dropped from the code when the parallel support
was added.
Regression since
b88940850 (7.66.0)
Reviewed-by: Jay Satiro
Closes #6155
Daniel Stenberg [Fri, 30 Oct 2020 10:29:22 +0000 (11:29 +0100)]
http: pass correct header size to debug callback for chunked post
... when the chunked framing was added, the size of the "body part" of
the data was calculated wrongly so the debug callback would get told a
header chunk a few bytes too big that would also contain the first few
bytes of the request body.
Reported-by: Dirk Wetter
Ref: #6144
Closes #6147
Daniel Stenberg [Fri, 30 Oct 2020 11:05:47 +0000 (12:05 +0100)]
header.d: mention the "Transfer-Encoding: chunked" handling
Ref: #6144
Closes #6148
Daniel Stenberg [Thu, 29 Oct 2020 09:01:42 +0000 (10:01 +0100)]
acinclude: detect manually set minimum macos/ipod version
... even if set in the CC or IPHONEOS/MACOSX_DEPLOYMENT_TARGET
variables.
Reported-by: hamstergene on github
Fixes #6138
Closes #6140
Jay Satiro [Thu, 29 Oct 2020 04:06:27 +0000 (00:06 -0400)]
tests: fix some http/2 tests for older versions of nghttpx
- Add regex that strips http/2 server header name to those http/2 tests
that don't already have it.
- Improve that regex in all http/2 tests.
Tests 358 and 359 were failing for me before this change on a system
that uses an older version of nghttpx which includes its version number
in the server header.
Closes https://github.com/curl/curl/pull/6139
Daniel Stenberg [Thu, 29 Oct 2020 23:21:38 +0000 (00:21 +0100)]
RELEASE-NOTES: synced
Cristian Morales Vega [Thu, 29 Oct 2020 17:14:49 +0000 (17:14 +0000)]
configure: use pkgconfig to find openSSL when cross-compiling
This reverts
736a40fec (November 2004), which doesn't explain why it was
done.
Closes #6145
Daniel Stenberg [Wed, 28 Oct 2020 10:00:31 +0000 (11:00 +0100)]
tool_operate: bail out proper on errors for parallel setup
... otherwise for example trying to upload a missing file just causes a
loop.
Reported-by: BrumBrum on hackerone
Closes #6141
Sergei Nikulov [Tue, 13 Oct 2020 20:37:15 +0000 (23:37 +0300)]
CMake: make BUILD_TESTING dependent option
CMake will now handle BUILD_TESTING depending on PERL_FOUND and
CURL_DISABLE_TESTING
Ref: #6036
Closes #6072
Daniel Stenberg [Mon, 26 Oct 2020 10:10:49 +0000 (11:10 +0100)]
libssh2: fix transport over HTTPS proxy
The fix in #6021 was not enough. This fix makes sure SCP/SFTP content
can also be transfered over a HTTPS proxy.
Fixes #6113
Closes #6128
Daniel Stenberg [Mon, 26 Oct 2020 22:38:52 +0000 (23:38 +0100)]
curl.1: add an "OUTPUT" section at the top of the manpage
Explain the basic concepts behind curl output.
Inspired by #6124
Closes #6134
Daniel Stenberg [Wed, 28 Oct 2020 10:10:54 +0000 (11:10 +0100)]
mailmap: set Viktor Szakats's email
Daniel Stenberg [Mon, 26 Oct 2020 07:58:05 +0000 (08:58 +0100)]
runtests: show keywords when no tests ran
To help out future debugging, runtests now outputs the list of keywords
when it fails because no tests ran.
Ref: #6120
Closes #6126
Jay Satiro [Mon, 26 Oct 2020 21:08:26 +0000 (17:08 -0400)]
CURLOPT_DNS_USE_GLOBAL_CACHE.3: fix typo
Reported-by: Rui LIU
Closes https://github.com/curl/curl/issues/6131
Jay Satiro [Mon, 26 Oct 2020 21:12:15 +0000 (17:12 -0400)]
range.d: fix typo
Follow-up to
15ae039 from earlier today.
Daniel Stenberg [Mon, 26 Oct 2020 12:10:29 +0000 (13:10 +0100)]
CI/github: work-around for brew breakage on macOS
... and make it use OpenSSL 1.1 properly
Fixes #6130
Closes #6129
José Joaquín Atria [Mon, 26 Oct 2020 09:36:16 +0000 (09:36 +0000)]
range.d: clarify that curl will not parse multipart responses
Closes #6127
Fixes #6124
Daniel Stenberg [Mon, 26 Oct 2020 08:27:29 +0000 (09:27 +0100)]
RELEASE-NOTES: synced
Baruch Siach [Mon, 26 Oct 2020 04:56:49 +0000 (06:56 +0200)]
libssh2: fix build with disabled proxy support
Build breaks because the http_proxy field is missing:
vssh/libssh2.c:3119:10: error: 'struct connectdata' has no member named 'http_proxy'
Regression from #6021, shipped in curl 7.73.0
Closes #6125
Daniel Stenberg [Sun, 25 Oct 2020 22:08:54 +0000 (23:08 +0100)]
alt-svc: enable by default
Remove CURLALTSVC_IMMEDIATELY, which was never implemented/supported.
alt-svc support in curl is no longer considered experimental
Closes #5868
Daniel Stenberg [Sun, 25 Oct 2020 11:07:00 +0000 (12:07 +0100)]
CI/appveyor: remove (unused) runtests.pl -b option
Emil Engler [Thu, 22 Oct 2020 15:23:36 +0000 (17:23 +0200)]
tool_help: make "output" description less confusing
Currently the description of "output" is misleading when comparing it
"verbose".
Closes #6118
Daniel Stenberg [Thu, 22 Oct 2020 17:36:24 +0000 (19:36 +0200)]
CI/appveyor: disable test 571 in two cmake builds
... they're simply too flaky there.
Closes #6119
Daniel Stenberg [Thu, 22 Oct 2020 12:49:19 +0000 (14:49 +0200)]
cmake: set the unicode feature in curl-config on Windows
... if built that way. To make it match curl -V output.
Reviewed-by: Marcel Raad
Closes #6117
Daniel Stenberg [Thu, 22 Oct 2020 10:29:21 +0000 (12:29 +0200)]
libssh2: require version 1.0 or later
... and simplify the code accordingly. libssh2 version 1.0 was released
in April 2009.
Closes #6116
Daniel Stenberg [Wed, 21 Oct 2020 06:25:19 +0000 (08:25 +0200)]
KNOWN_BUGS: mention the individual cmake issues
... to make them easier to refer to and address separately and
one-by-one.
Daniel Stenberg [Tue, 20 Oct 2020 08:29:53 +0000 (10:29 +0200)]
CMake: store IDN2 information in curl_config.h
This allows the build to enable IDN properly and it makes test 1014
happier.
Ref: #6074
Closes #6108
Daniel Stenberg [Tue, 20 Oct 2020 08:28:01 +0000 (10:28 +0200)]
CMake: call the feature unixsockets without dash
... so that curl-config gets correct and makes test 1014 happy!
Ref: #6074
Closes #6108
Daniel Stenberg [Mon, 19 Oct 2020 09:13:05 +0000 (11:13 +0200)]
CI/travis: add brotli and zstd to the libssh2 build
... to make sure such tests are run with valgrind. Suppress the zstd
valgrind warnings we get with version 1.3.3 on Ubuntu 18.04 (for debug
and non-debug builds).
Closes #6105
Daniel Stenberg [Mon, 19 Oct 2020 09:50:08 +0000 (11:50 +0200)]
runtests: revert the mistaken edit of $CURL
Regression from
c4693adc62
Daniel Stenberg [Mon, 19 Oct 2020 07:14:47 +0000 (09:14 +0200)]
RELEASE-NOTES: synced
Daniel Stenberg [Sun, 18 Oct 2020 21:02:57 +0000 (23:02 +0200)]
curl_url_set.3: fix typo in the RETURN VALUE section
Reported-by: Basuke Suzuki
Fixes #6102
Daniel Stenberg [Thu, 15 Oct 2020 08:07:00 +0000 (10:07 +0200)]
packages/OS400: make the source code-style compliant
... and make sure 'make checksrc' in the root dir also verifies the
packages/OS400 sources.
Closes https://github.com/curl/curl/pull/6085
Jay Satiro [Thu, 15 Oct 2020 07:32:30 +0000 (03:32 -0400)]
os400: Sync libcurl API options
This fixes the OS400 build and also an incorrect entry for
CURLINFO_APPCONNECT_TIME_T where it was treated as
CURLINFO_STARTTRANSFER_TIME_T.
Reported-by: Jon Rumsey
Fixes https://github.com/curl/curl/issues/6083
Closes https://github.com/curl/curl/pull/6084
Daniel Stenberg [Fri, 16 Oct 2020 21:01:55 +0000 (23:01 +0200)]
CURLOPT_NOBODY.3: fix typo
Reported-by: Basuke Suzuki
Fixes #6097
Marc Hoersken [Mon, 12 Oct 2020 04:23:25 +0000 (06:23 +0200)]
CI/azure: improve on flakiness by avoiding libtool wrappers
Install curl binaries into MinGW bin folder and use that
for the tests in order to avoid libtool wrapper binaries.
The libtool wrapper binaries (not scripts) on Windows seem
to be one of the possible causes for the following issues:
1. Process output can be lost in the wrapper process chain.
2. Killing the wrapper process does not kill the actual one.
Derived from #5904
Closes #6049
Daniel Stenberg [Fri, 16 Oct 2020 13:36:01 +0000 (15:36 +0200)]
CURLOPT_URL.3: clarify SCP/SFTP URLs are for uploads as well
Zenju [Fri, 16 Oct 2020 12:44:34 +0000 (14:44 +0200)]
CURLOPT_TCP_NODELAY.3: fix comment in example code
Closes #6096
Daniel Stenberg [Thu, 15 Oct 2020 20:56:13 +0000 (22:56 +0200)]
openssl: acknowledge SRP disabling in configure properly
Follow-up to
68a513247409
Use a new separate define that is the combination of both
HAVE_OPENSSL_SRP and USE_TLS_SRP: USE_OPENSSL_SRP
Bug: https://curl.haxx.se/mail/lib-2020-10/0037.html
Closes #6094
Viktor Szakats [Fri, 16 Oct 2020 07:15:48 +0000 (07:15 +0000)]
http3: fix two build errors, silence warnings
* fix two build errors due to mismatch between function
declarations and their definitions
* silence two mismatched signs warnings via casts
Approved-by: Daniel Stenberg
Closes #6093
Viktor Szakats [Fri, 16 Oct 2020 07:15:19 +0000 (07:15 +0000)]
Makefile.m32: add support for HTTP/3 via ngtcp2+nghttp3
Approved-by: Daniel Stenberg
Closes #6092
Daniel Stenberg [Thu, 15 Oct 2020 20:57:27 +0000 (22:57 +0200)]
tool_operate: fix compiler warning when --libcurl is disabled
Closes #6095
Daniel Stenberg [Thu, 15 Oct 2020 13:30:55 +0000 (15:30 +0200)]
checksrc: warn on empty line before open brace
... and fix a few occurances
Closes #6088
Daniel Stenberg [Thu, 15 Oct 2020 10:22:27 +0000 (12:22 +0200)]
urlapi: URL encode a '+' in the query part
... when asked to with CURLU_URLENCODE.
Extended test 1560 to verify.
Reported-by: Dietmar Hauser
Fixes #6086
Closes #6087
Cristian Morales Vega [Sun, 11 Oct 2020 22:46:53 +0000 (23:46 +0100)]
libcurl.pc: make it relocatable
It supposes when people specify the libdir/includedir they do it to
change where under prefix/exec_prefix it should be, not to make it
independent of prefix/exec_prefix.
Closes #6061
Daniel Stenberg [Wed, 7 Oct 2020 22:13:07 +0000 (00:13 +0200)]
runtests: return error if no tests ran
... and make TESTFAIL stand out a little better by adding newlines
before and after.
Reported-by: Marc Hörsken
Issue: #6052
Closes #6053
Daniel Stenberg [Tue, 13 Oct 2020 15:34:40 +0000 (17:34 +0200)]
docs/FEATURE: convert to markdown
... and clean it up a bit.
Closes #6067
Philipp Klaus Krause [Tue, 13 Oct 2020 16:35:50 +0000 (18:35 +0200)]
strerror: use 'const' as the string should never be modified
Closes #6068
Jay Satiro [Thu, 15 Oct 2020 06:47:49 +0000 (02:47 -0400)]
connect: repair build without ipv6 availability
Assisted-by: Daniel Stenberg
Reported-by: Tom G. Christensen
Fixes https://github.com/curl/curl/issues/6069
Closes https://github.com/curl/curl/pull/6071
Daniel Stenberg [Thu, 15 Oct 2020 10:52:34 +0000 (12:52 +0200)]
RELEASE-NOTES: synced
Started over for the journey to next release.
Daniel Stenberg [Thu, 15 Oct 2020 08:14:10 +0000 (10:14 +0200)]
src/tool_filetime: disable -Wformat on mingw for this file
With gcc 10 on mingw we otherwise get this warning:
error: ISO C does not support the 'I' printf flag [-Werror=format=]
Fixes #6079
Closes #6082
Daniel Stenberg [Wed, 14 Oct 2020 21:49:00 +0000 (23:49 +0200)]
test122[12]: remove these two tests
... and remove the objnames scripts they tested. They're not used for
anything anymore so testing them serves no purpose!
Reported-by: Marc Hörsken
Fixes #6080
Closes #6081
Daniel Stenberg [Sun, 11 Oct 2020 21:49:49 +0000 (23:49 +0200)]
RELEASE-NOTES: synced
for 7.73.0
Daniel Stenberg [Sun, 11 Oct 2020 21:51:21 +0000 (23:51 +0200)]
THANKS: from 7.73.0 and .mailmap fixes
Daniel Stenberg [Fri, 4 Sep 2020 13:28:49 +0000 (15:28 +0200)]
mailmap: fixups of some contributors
Daniel Stenberg [Wed, 14 Oct 2020 05:49:57 +0000 (07:49 +0200)]
projects/build-wolfssl.bat: fix the copyright year range