]>
git.ipfire.org Git - thirdparty/curl.git/log
Daniel Stenberg [Wed, 5 Jan 2022 15:36:29 +0000 (16:36 +0100)]
next.d. remove .fi/.nf as they are handled by gen.pl
Closes #8228
Daniel Stenberg [Wed, 5 Jan 2022 15:35:34 +0000 (16:35 +0100)]
gen.pl: terminate "example" sections better
If the example (section that is prefixed with spaces) ends the
description gen.pl would previously miss to output the terminating .fi
Closes #8228
Satadru Pramanik [Wed, 5 Jan 2022 17:43:25 +0000 (12:43 -0500)]
curl-functions.m4: fix LIBRARY_PATH adjustment to avoid eval
$$ usage in a m4 file introduces the PID in linux.
Instead, just duplicate previous working code with a case switch.
Fixes #8229
Closes #8230
Daniel Stenberg [Tue, 4 Jan 2022 07:49:51 +0000 (08:49 +0100)]
RELEASE-NOTES: synced
curl 7.81.0 release
Daniel Stenberg [Tue, 4 Jan 2022 07:51:02 +0000 (08:51 +0100)]
THANKS: add names from 7.81.0 release
Daniel Stenberg [Tue, 4 Jan 2022 07:54:48 +0000 (08:54 +0100)]
curl_multi_init.3: fix the copyright year range
Daniel Stenberg [Tue, 4 Jan 2022 22:15:37 +0000 (23:15 +0100)]
test719-721: require "proxy" feature present to run
Bug: https://github.com/curl/curl/pull/8223#issuecomment-
1005188696
Reported-by: Marc Hörsken
Closes #8226
Daniel Stenberg [Tue, 4 Jan 2022 10:17:25 +0000 (11:17 +0100)]
test719: require ipv6 support to run
Follow-up to
effd2bd7ba2a5fd244
Reported-by: Marc Hörsken
Bug: https://github.com/curl/curl/pull/8217#issuecomment-
1004681145
Closes #8223
Daniel Stenberg [Mon, 3 Jan 2022 12:35:53 +0000 (13:35 +0100)]
test719-721: verify SOCKS details
Using the new verify/socks details
Daniel Stenberg [Mon, 3 Jan 2022 12:33:46 +0000 (13:33 +0100)]
runtests: add verify/socks check
If used, this data is compared with the data in log/socksd-request.log
which the socksd server logs.
Added to FILEFORMAT.md
Daniel Stenberg [Mon, 3 Jan 2022 12:32:05 +0000 (13:32 +0100)]
server/socksd: log atyp + address in a separate log
To allow the test suite to verify that the right data arrived
Daniel Stenberg [Mon, 3 Jan 2022 10:29:21 +0000 (11:29 +0100)]
socks5: use appropriate ATYP for numerical IP address host names
When not resolving the address locallly (known as socks5h).
Add test 719 and 720 to verify.
Reported-by: Peter Piekarski
Fixes #8216
Closes #8217
Jay Satiro [Mon, 3 Jan 2022 20:14:45 +0000 (15:14 -0500)]
curl_multi_init.3: fix EXAMPLE formatting
Daniel Stenberg [Mon, 3 Jan 2022 16:17:22 +0000 (17:17 +0100)]
RELEASE-NOTES: synced
Daniel Stenberg [Mon, 3 Jan 2022 15:39:45 +0000 (16:39 +0100)]
libtest: avoid "assignment within conditional expression"
In lib530, lib540 and lib582
Closes #8218
Daniel Stenberg [Mon, 3 Jan 2022 15:04:32 +0000 (16:04 +0100)]
ftp: disable warning 4706 in MSVC
Follow-up to
21248e052d
Disabling "assignment within conditional expression" for MSVC needs to
be done before the function starts, for it to take effect.
Closes #8218
Daniel Stenberg [Sun, 2 Jan 2022 16:42:04 +0000 (17:42 +0100)]
tool_operate: warn if too many output arguments were found
More output instructions than URLs is likely a user error.
Add test case 371 to verify
Closes #8210
Daniel Stenberg [Mon, 3 Jan 2022 07:58:04 +0000 (08:58 +0100)]
.github/workflows/mbedtls.yml: bump to mbedtls 3.1.0
Closes #8215
Daniel Stenberg [Mon, 3 Jan 2022 07:19:25 +0000 (08:19 +0100)]
zuul: remove the mbedtls jobs
Now running as github workflows
Closes #8215
Daniel Stenberg [Mon, 3 Jan 2022 07:15:59 +0000 (08:15 +0100)]
github/workflows: add mbedtls and mbedtls-clang
Closes #8215
Valentin Richter [Sun, 2 Jan 2022 23:00:15 +0000 (18:00 -0500)]
mbedtls: fix private member designations for v3.1.0
"As a last resort, you can access the field foo of a structure bar by
writing bar.MBEDTLS_PRIVATE(foo). Note that you do so at your own risk,
since such code is likely to break in a future minor version of Mbed
TLS." -
https://github.com/ARMmbed/mbedtls/blob/
f2d1199edc5834df4297f247f213e614f7782d1d /docs/3.0-migration-guide.md
That future minor version is v3.1.0. I set the >= to == for the version
checks because v3.1.0 is a release, and I am not sure when the private
designation was reverted after v3.0.0.
Closes #8214
Valentin Richter [Sat, 1 Jan 2022 21:40:44 +0000 (16:40 -0500)]
cmake: prevent dev warning due to mismatched arg
-- curl version=[7.81.0-DEV]
CMake Warning (dev) at /usr/share/cmake-3.22.1/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
The package name passed to `find_package_handle_standard_args` (MBEDTLS)
does not match the name of the calling package (MbedTLS). This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
deps/curl/CMake/FindMbedTLS.cmake:31 (find_package_handle_standard_args)
deps/curl/CMakeLists.txt:473 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
Closes #8207
Daniel Stenberg [Sat, 1 Jan 2022 21:33:56 +0000 (22:33 +0100)]
urlapi: if possible, shorten given numerical IPv6 addresses
Extended test 1560 to verify
Closes #8206
MAntoniak [Thu, 16 Dec 2021 18:31:57 +0000 (19:31 +0100)]
url: reduce ssl backend count for CURL_DISABLE_PROXY builds
Closes #8212
Daniel Stenberg [Sat, 1 Jan 2022 16:59:56 +0000 (17:59 +0100)]
KNOWN_BUGS: "Trying local ports fails on Windows"
Reported-by: gclinch on github
Closes #8112
Daniel Stenberg [Thu, 30 Dec 2021 13:17:47 +0000 (14:17 +0100)]
misc: update copyright year range
Daniel Stenberg [Thu, 30 Dec 2021 13:15:33 +0000 (14:15 +0100)]
zuul: remove the wolfssl even more
Follow-up to
1914465cf180d32b3d
Daniel Stenberg [Thu, 30 Dec 2021 11:01:57 +0000 (12:01 +0100)]
examples/multi-single.c: remove WAITMS()
As it isn't used.
Reported-by: Melroy van den Berg
Fixes #8200
Closes #8201
Daniel Stenberg [Wed, 29 Dec 2021 22:46:13 +0000 (23:46 +0100)]
gtls: add gnutls include for the session type
Follow-up to
8fbd6feddfa5 to make it build more universally
Daniel Stenberg [Tue, 28 Dec 2021 21:57:31 +0000 (22:57 +0100)]
m4/curl-compilers: tell clang -Wno-pointer-bool-conversion
To hush compiler warnings we don't care for: error: address of function
'X' will always evaluate to 'true'
Fixes #8197
Closes #8198
Daniel Stenberg [Tue, 28 Dec 2021 13:48:51 +0000 (14:48 +0100)]
http_proxy: don't close the socket (too early)
... and double-check in the OpenSSL shutdown that the socket is actually
still there before it is used.
Fixes #8193
Closes #8195
Reported-by: Leszek Kubik
Daniel Stenberg [Sat, 25 Dec 2021 15:14:53 +0000 (16:14 +0100)]
ngtcp2: verify the server certificate for the gnutls case
Closes #8178
Daniel Stenberg [Thu, 23 Dec 2021 09:24:31 +0000 (10:24 +0100)]
ngtcp2: verify the server cert on connect (quictls)
Make ngtcp2+quictls correctly acknowledge `CURLOPT_SSL_VERIFYPEER` and
`CURLOPT_SSL_VERIFYHOST`.
The name check now uses a function from lib/vtls/openssl.c which will
need attention for when TLS is not done by OpenSSL or is disabled while
QUIC is enabled.
Possibly the servercert() function in openssl.c should be adjusted to be
able to use for both regular TLS and QUIC.
Ref: #8173
Closes #8178
Daniel Stenberg [Tue, 28 Dec 2021 14:26:28 +0000 (15:26 +0100)]
zuul: remove the wolfssl build
Daniel Stenberg [Tue, 28 Dec 2021 14:08:24 +0000 (15:08 +0100)]
github workflow: add wolfssl
Closes #8196
Nicolas Sterchele [Sun, 26 Dec 2021 14:28:24 +0000 (15:28 +0100)]
zuul: fix quiche build pointing to wrong Cargo
Fixes #8184
Closes #8189
Daniel Stenberg [Sat, 25 Dec 2021 20:41:14 +0000 (21:41 +0100)]
checksrc: detect more kinds of NULL comparisons we avoid
Co-authored-by: Jay Satiro
Closes #8180
Daniel Stenberg [Mon, 27 Dec 2021 21:54:22 +0000 (22:54 +0100)]
RELEASE-NOTES: synced
Daniel Stenberg [Sat, 25 Dec 2021 21:42:46 +0000 (22:42 +0100)]
mesalink: remove the BACKEND define kludge
Closes #8183
Daniel Stenberg [Sat, 25 Dec 2021 21:23:05 +0000 (22:23 +0100)]
schannel: remove the BACKEND define kludge
Closes #8182
Daniel Stenberg [Sat, 25 Dec 2021 20:48:38 +0000 (21:48 +0100)]
gtls: check return code for gnutls_alpn_set_protocols
Closes #8181
Stefan Huber [Sat, 25 Dec 2021 22:47:02 +0000 (23:47 +0100)]
README: label the link to the support document
Closes #8185
Daniel Stenberg [Thu, 23 Dec 2021 10:20:34 +0000 (11:20 +0100)]
docs/HTTP3: describe how to setup a h3 reverse-proxy for testing
Assisted-by: Matt Holt
Closes #8177
Daniel Stenberg [Thu, 23 Dec 2021 09:18:04 +0000 (10:18 +0100)]
libcurl-multi.3: "SOCKS proxy handshakes" are not blocking
Since
4a4b63daaa0
Vladimir Panteleev [Mon, 20 Dec 2021 17:55:33 +0000 (17:55 +0000)]
tests: Add test for CURLOPT_HTTP200ALIASES
Vladimir Panteleev [Mon, 20 Dec 2021 16:49:59 +0000 (16:49 +0000)]
http: Fix CURLOPT_HTTP200ALIASES
The httpcode < 100 check was also triggered when none of the fields were
parsed, thus making the if(!nc) block unreachable.
Closes #8171
Daniel Stenberg [Mon, 20 Dec 2021 15:19:41 +0000 (16:19 +0100)]
RELEASE-NOTES: synced
Daniel Stenberg [Mon, 20 Dec 2021 12:49:03 +0000 (13:49 +0100)]
language: "email"
Missed three occurrences.
Follow-up to
7a92f86
Daniel Stenberg [Fri, 17 Dec 2021 22:40:11 +0000 (23:40 +0100)]
nss:set_cipher don't clobber the cipher list
The string is set by the user and needs to remain intact for proper
connection reuse etc.
Reported-by: Eric Musser
Fixes #8160
Closes #8161
Daniel Stenberg [Fri, 17 Dec 2021 10:02:18 +0000 (11:02 +0100)]
misc: s/e-mail/email
Consistency is king. Following the lead in everything curl.
Closes #8159
Tobias Nießen [Sat, 18 Dec 2021 14:52:39 +0000 (15:52 +0100)]
docs: fix typo in OpenSSL 3 build instructions
Closes #8162
Daniel Stenberg [Thu, 16 Dec 2021 22:30:43 +0000 (23:30 +0100)]
linkcheck.yml: add CI job that checks markdown links
Closes #8158
Daniel Stenberg [Thu, 16 Dec 2021 23:00:10 +0000 (00:00 +0100)]
RELEASE-PROCEDURE.md: remove ICAL link and old release dates
Daniel Stenberg [Thu, 16 Dec 2021 22:56:15 +0000 (23:56 +0100)]
BINDINGS.md: "markdown-link-check-disable"
It feels a bit unfortunate to litter an ugly tag for this functionality,
but if we get link scans of all markdown files, this might be worth the
price.
Daniel Stenberg [Thu, 16 Dec 2021 22:49:39 +0000 (23:49 +0100)]
docs: fix dead links, remove ECH.md
Jay Satiro [Wed, 15 Dec 2021 19:45:34 +0000 (14:45 -0500)]
openssl: define HAVE_OPENSSL_VERSION for OpenSSL 1.1.0+
Prior to this change OpenSSL_version was only detected in configure
builds. For other builds the old version parsing code was used which
would result in incorrect versioning for OpenSSL 3:
Before:
curl 7.80.0 (i386-pc-win32) libcurl/7.80.0 OpenSSL/3.0.0a zlib/1.2.11
WinIDN libssh2/1.9.0
After:
curl 7.80.0 (i386-pc-win32) libcurl/7.80.0 OpenSSL/3.0.1 zlib/1.2.11
WinIDN libssh2/1.9.0
Reported-by: lllaffer@users.noreply.github.com
Fixes https://github.com/curl/curl/issues/8154
Closes https://github.com/curl/curl/pull/8155
xquery [Thu, 16 Dec 2021 08:20:54 +0000 (09:20 +0100)]
docs: add known bugs list to HTTP3.md
Closes #8156
Dan Fandrich [Thu, 16 Dec 2021 06:26:27 +0000 (22:26 -0800)]
BINDINGS: add one from Everything curl and update a link
Dan Fandrich [Wed, 15 Dec 2021 08:11:53 +0000 (00:11 -0800)]
libcurl-security.3: mention address and URL mitigations
The new CURLOPT_PREREQFUNCTION callback is another way to sanitize
addresses.
Using the curl_url API is a way to mitigate against attacks relying on
URL parsing differences.
Daniel Stenberg [Wed, 15 Dec 2021 07:50:01 +0000 (08:50 +0100)]
RELEASE-NOTES: synced
Daniel Stenberg [Tue, 14 Dec 2021 15:45:45 +0000 (16:45 +0100)]
x509asn1: return early on errors
Overhaul to make sure functions that detect errors bail out early with
error rather than trying to continue and risk hiding the problem.
Closes #8147
Patrick Monnerat [Tue, 14 Dec 2021 14:42:47 +0000 (15:42 +0100)]
openldap: several minor improvements
- Early check proper LDAP URL syntax. Reject URLs with a userinfo part.
- Use dynamic memory for ldap_init_fd() URL rather than a
stack-allocated buffer.
- Never chase referrals: supporting it would require additional parallel
connections and alternate authentication credentials.
- Do not wait 1 microsecond while polling/reading query response data.
- Store last received server code for retrieval with CURLINFO_RESPONSE_CODE.
Closes #8140
MAntoniak [Mon, 6 Sep 2021 14:36:34 +0000 (16:36 +0200)]
misc: remove unused doh flags when CURL_DISABLE_DOH is defined
Closes #8148
Daniel Stenberg [Tue, 14 Dec 2021 09:00:34 +0000 (10:00 +0100)]
mbedtls: fix CURLOPT_SSLCERT_BLOB
The memory passed to mbedTLS for this needs to be null terminated.
Reported-by: Florian Van Heghe
Closes #8146
Daniel Stenberg [Tue, 14 Dec 2021 07:31:37 +0000 (08:31 +0100)]
asyn-ares: ares_getaddrinfo needs no happy eyeballs timer
Closes #8142
Daniel Stenberg [Tue, 14 Dec 2021 13:48:30 +0000 (14:48 +0100)]
mailmap: add Yongkang Huang
From #8141
MrDwZ [Tue, 14 Dec 2021 02:46:28 +0000 (18:46 -0800)]
check ssl_config when re-use proxy connection
Daniel Stenberg [Tue, 14 Dec 2021 08:34:46 +0000 (09:34 +0100)]
mbedtls: do a separate malloc for ca_info_blob
Since the mbedTLS API requires the data to the null terminated.
Follow-up to
456c53730d21b1fad0c7f72c1817
Fixes #8139
Closes #8145
Marc Hoersken [Tue, 14 Dec 2021 06:53:39 +0000 (07:53 +0100)]
CI: build examples for additional code verification
Some CIs already build them, let's do it on more of them.
Reviewed-by: Daniel Stenberg
Follow up to #7690 and
77311f420a541a0de5b3014e0e40ff8b4205d4af
Replaces #7591
Closes #7922
Marc Hoersken [Tue, 14 Dec 2021 06:52:26 +0000 (07:52 +0100)]
docs/examples: workaround broken -Wno-pedantic-ms-format
Avoid CURL_FORMAT_CURL_OFF_T by using unsigned long instead.
Improve size_t to long conversion in imap-append.c example.
Ref: https://github.com/curl/curl/issues/6079
Ref: https://github.com/curl/curl/pull/6082
Assisted-by: Jay Satiro
Reviewed-by: Daniel Stenberg
Preparation of #7922
Marc Hoersken [Mon, 13 Dec 2021 11:15:16 +0000 (12:15 +0100)]
tests/data/test302[12]: fix MSYS2 path conversion of hostpubsha256
Ref: https://www.msys2.org/wiki/Porting/#filesystem-namespaces
Reviewed-by: Marcel Raad
Reviewed-by: Jay Satiro
Fixes #8084
Closes #8138
Patrick Monnerat [Sun, 12 Dec 2021 00:24:06 +0000 (01:24 +0100)]
openldap: simplify ldif generation code
and take care of zero-length values, avoiding conversion to base64
and/or trailing spaces.
Closes #8136
Daniel Stenberg [Mon, 13 Dec 2021 10:13:17 +0000 (11:13 +0100)]
example/progressfunc: remove code for old libcurls
7.61.0 is over three years old now, remove all #ifdefs for handling
ancient libcurl versions so that the example gets easier to read and
understand
Closes #8137
x2018 [Fri, 10 Dec 2021 13:33:39 +0000 (21:33 +0800)]
sha256/md5: return errors when init fails
Closes #8133
Daniel Stenberg [Sat, 11 Dec 2021 21:30:27 +0000 (22:30 +0100)]
TODO: 13.3 Defeat TLS fingerprinting
Closes #8119
Daniel Stenberg [Sat, 11 Dec 2021 20:49:24 +0000 (21:49 +0100)]
RELEASE-NOTES: synced
Patrick Monnerat [Mon, 6 Dec 2021 10:13:28 +0000 (11:13 +0100)]
openldap: process search query response messages one by one
Upon receiving large result sets, this reduces memory consumption and
allows starting to output results while the transfer is still in
progress.
Closes #8101
Daniel Stenberg [Fri, 10 Dec 2021 11:54:17 +0000 (12:54 +0100)]
hash: lazy-alloc the table in Curl_hash_add()
This makes Curl_hash_init() infallible which saves error paths.
Closes #8132
Daniel Stenberg [Fri, 10 Dec 2021 11:46:16 +0000 (12:46 +0100)]
multi: cleanup the socket hash when destroying it
Since each socket hash entry may themselves have a hash table in them,
the destroying of the socket hash needs to make sure all the subhashes
are also correctly destroyed to avoid leaking memory.
Fixes #8129
Closes #8131
Daniel Stenberg [Fri, 10 Dec 2021 14:40:50 +0000 (15:40 +0100)]
test1156: fixup the stdout check for Windows
It is not text mode.
Follow-up to
6f73e68d182
Closes #8134
Daniel Stenberg [Thu, 9 Dec 2021 16:02:19 +0000 (17:02 +0100)]
test1528: enable for hyper
Closes #8128
Daniel Stenberg [Thu, 9 Dec 2021 16:01:31 +0000 (17:01 +0100)]
test1527: enable for hyper
Closes #8128
Daniel Stenberg [Thu, 9 Dec 2021 15:07:19 +0000 (16:07 +0100)]
test1526: enable for hyper
Closes #8128
Daniel Stenberg [Thu, 9 Dec 2021 15:06:16 +0000 (16:06 +0100)]
test1525: slightly tweaked for hyper
Closes #8128
Daniel Stenberg [Thu, 9 Dec 2021 14:46:32 +0000 (15:46 +0100)]
test1156: enable for hyper
Minor reorg of the lib1156 code and it works fine for hyper.
Closes #8127
Daniel Stenberg [Thu, 9 Dec 2021 14:39:55 +0000 (15:39 +0100)]
test661: enable for hyper
Closes #8126
Daniel Stenberg [Thu, 9 Dec 2021 11:03:35 +0000 (12:03 +0100)]
docs: fix proselint nits
- remove a lot of exclamation marks
- use consistent spaces (1, not 2)
- use better words at some places
Closes #8123
RekGRpth [Thu, 9 Dec 2021 11:16:37 +0000 (16:16 +0500)]
BINDINGS.md: add cURL client for PostgreSQL
Closes #8125
RekGRpth [Thu, 9 Dec 2021 11:13:58 +0000 (16:13 +0500)]
CURLSHOPT_USERDATA.3: fix copy-paste mistake
Closes #8124
Daniel Stenberg [Thu, 9 Dec 2021 12:18:27 +0000 (13:18 +0100)]
docs: fix minor nroff format nits
Repairs test 1140
Follow-up to
436cdf82041
Daniel Stenberg [Thu, 9 Dec 2021 10:32:09 +0000 (11:32 +0100)]
docs/URL-SYNTAX.md: space is not fine in a given URL
Daniel Stenberg [Wed, 8 Dec 2021 14:37:37 +0000 (15:37 +0100)]
curl_multi_perform/socket_action.3: clarify what errors mean
An error returned from one of these funtions mean that ALL still ongoing
transfers are to be considered failed.
Ref: #8114
Closes #8120
Daniel Stenberg [Wed, 8 Dec 2021 14:01:33 +0000 (15:01 +0100)]
libcurl-errors.3: add CURLM_ABORTED_BY_CALLBACK
Follow-up to #8089 (
2b3dd01 )
Closes #8116
Daniel Stenberg [Wed, 8 Dec 2021 12:22:44 +0000 (13:22 +0100)]
hash: add asserts to help detect bad usage
For example trying to add entries after the hash has been "cleaned up"
Closes #8115
Daniel Stenberg [Thu, 9 Dec 2021 07:26:28 +0000 (08:26 +0100)]
lib530: abort on curl_multi errors
This makes torture tests run more proper.
Also add an assert to trap situations where it would end up with no
sockets to wait for.
Closes #8121
Daniel Stenberg [Wed, 8 Dec 2021 09:12:19 +0000 (10:12 +0100)]
FAQ: we never pronounced it "see URL", we say "kurl"
Daniel Stenberg [Tue, 7 Dec 2021 16:16:38 +0000 (17:16 +0100)]
RELEASE-NOTES: synced
Daniel Stenberg [Tue, 7 Dec 2021 10:53:05 +0000 (11:53 +0100)]
CURLOPT_RESOLVE.3: minor polish
Minor rephrasing for some explanations.
Put the format strings in stand-alone lines with .nf/.fi to be easier to spot.
Move "added in" to AVAILABILITY
Closed #8110
Daniel Stenberg [Mon, 6 Dec 2021 16:51:40 +0000 (17:51 +0100)]
test1556: adjust for hyper
Closes #8105
Daniel Stenberg [Mon, 6 Dec 2021 16:46:50 +0000 (17:46 +0100)]
test1554: adjust for hyper
Closes #8104