]>
git.ipfire.org Git - thirdparty/curl.git/log
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
Daniel Stenberg [Tue, 7 Dec 2021 09:10:51 +0000 (10:10 +0100)]
retry-all-errors.d: make the example complete
... as it needs --retry too to work
Daniel Stenberg [Mon, 6 Dec 2021 16:03:00 +0000 (17:03 +0100)]
TODO: 5.7 Require HTTP version X or higher
Closes #7980
Daniel Stenberg [Mon, 6 Dec 2021 14:05:16 +0000 (15:05 +0100)]
CURLOPT_STDERR.3: does not work with libcurl as a win32 DLL
This is the exact same limitation already documented for
CURLOPT_WRITEDATA but should be clarified here. It also has a different
work-around.
Reported-by: Stephane Pellegrino
Bug: https://github.com/curl/curl/issues/8102
Closes #8103
Daniel Stenberg [Thu, 2 Dec 2021 12:57:38 +0000 (13:57 +0100)]
multi: handle errors returned from socket/timer callbacks
The callbacks were partially documented to support this. Now the
behavior is documented and returning error from either of these
callbacks will effectively kill all currently ongoing transfers.
Added test 530 to verify
Reported-by: Marcelo Juchem
Fixes #8083
Closes #8089
Daniel Stenberg [Mon, 6 Dec 2021 10:19:52 +0000 (11:19 +0100)]
http2:set_transfer_url() return early on OOM
If curl_url() returns NULL this should return early to avoid mistakes -
even if right now the subsequent function invokes are all OK.
Coverity (wrongly) pointed out this as a NULL deref.
Closes #8100
Daniel Stenberg [Mon, 6 Dec 2021 07:45:03 +0000 (08:45 +0100)]
tool_parsecfg: use correct free() call to free memory
Detected by Coverity. CID
1494642 .
Follow-up from
2be1aa619bca
Closes #8099
Daniel Stenberg [Mon, 6 Dec 2021 07:25:56 +0000 (08:25 +0100)]
tool_operate: fix potential memory-leak
A 'CURLU *' would leak if url_proto() is called with no URL.
Detected by Coverity. CID
1494643 .
Follow-up to
18270893abdb19
Closes #8098
Patrick Monnerat [Tue, 30 Nov 2021 16:48:28 +0000 (17:48 +0100)]
openldap: implement STARTTLS
As this introduces use of CURLOPT_USE_SSL option for LDAP, also check
this option in ldap.c as it is not supported by this backend.
Closes #8065
Jun Tseng [Mon, 6 Dec 2021 04:38:24 +0000 (12:38 +0800)]
curl_easy_unescape.3: call curl_easy_cleanup in example
Closes #8097
Jun Tseng [Mon, 6 Dec 2021 04:39:03 +0000 (12:39 +0800)]
curl_easy_escape.3: call curl_easy_cleanup in example
Closes #8097
Daniel Stenberg [Sun, 5 Dec 2021 22:13:56 +0000 (23:13 +0100)]
tool_listhelp: sync
Follow-up to
172068b76f
Damien Walsh [Fri, 3 Dec 2021 23:20:42 +0000 (23:20 +0000)]
request.d: refer to 'method' rather than 'command'
Closes #8094
Daniel Stenberg [Fri, 3 Dec 2021 22:04:04 +0000 (23:04 +0100)]
RELEASE-NOTES: synced
Daniel Stenberg [Fri, 3 Dec 2021 15:55:04 +0000 (16:55 +0100)]
writeout: fix %{http_version} for HTTP/3
Output "3" properly when HTTP/3 was used.
Reported-by: Bernat Mut
Fixes #8072
Closes #8092
Daniel Stenberg [Fri, 3 Dec 2021 14:56:58 +0000 (15:56 +0100)]
urlapi: accept port number zero
This is a regression since 7.62.0 (
fb30ac5a2d ).
Updated test 1560 accordingly
Reported-by: Brad Fitzpatrick
Fixes #8090
Closes #8091
Mark Dodgson [Wed, 1 Dec 2021 15:31:52 +0000 (15:31 +0000)]
lift: ignore is a deprecated config option, use ignoreRules
Closes #8082
Alessandro Ghedini [Tue, 30 Nov 2021 13:37:36 +0000 (13:37 +0000)]
HTTP3: update quiche build instructions
The repo repo was re-organized a bit, so the build instructions need to
be updated.
Closes #8076
Daniel Stenberg [Thu, 2 Dec 2021 11:05:48 +0000 (12:05 +0100)]
CURLMOPT_TIMERFUNCTION.3: call it expire time, not interval
Since we say it is a non-repating timer
Florian Van Heghe [Wed, 1 Dec 2021 11:37:42 +0000 (12:37 +0100)]
mbedTLS: include NULL byte in blob data length for CURLOPT_CAINFO_BLOB
Fixes #8079
Closes #8081
Wyatt O'Day [Thu, 7 Oct 2021 10:58:39 +0000 (06:58 -0400)]
version_win32: Check build number and platform id
Prior to this change the build number was not checked during version
comparison, and the platform id was supposed to be checked but wasn't.
Checking the build number is required for enabling "evergreen"
Windows 10/11 features (like TLS 1.3).
Ref: https://github.com/curl/curl/pull/7784
Closes https://github.com/curl/curl/pull/7824
Closes https://github.com/curl/curl/pull/7867
Jay Satiro [Thu, 2 Dec 2021 07:19:51 +0000 (02:19 -0500)]
libssh2: fix error message for sha256 mismatch
- On mismatch error show sha256 fingerprint in base64 format.
Prior to this change the fingerprint was mistakenly printed in binary.
x2018 [Wed, 1 Dec 2021 03:20:33 +0000 (11:20 +0800)]
openssl: check the return value of BIO_new()
Closes #8078
Dan Fandrich [Wed, 1 Dec 2021 02:33:49 +0000 (18:33 -0800)]
docs: Update the Reducing Size section
Add many more options that can reduce the size of the binary that were
added since the last update. Update the sample minimal binary size for
version 7.80.0.
Dan Fandrich [Wed, 1 Dec 2021 02:32:53 +0000 (18:32 -0800)]
tests: Add some missing keywords to tests
These are needed to skip some tests when configure options have disabled
certain features.
Florian Van Heghe [Mon, 29 Nov 2021 14:22:33 +0000 (15:22 +0100)]
mbedTLS: add support for CURLOPT_CAINFO_BLOB
Closes #8071
Glenn Strauss [Sun, 28 Nov 2021 07:22:40 +0000 (02:22 -0500)]
digest: compute user:realm:pass digest w/o userhash
https://datatracker.ietf.org/doc/html/rfc7616#section-3.4.4
... the client MUST calculate a hash of the username after
any other hash calculation ...
Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
Closes #8066
Daniel Stenberg [Fri, 19 Nov 2021 16:09:51 +0000 (17:09 +0100)]
config.d: update documentation to match the path search
Assisted-by: Jay Satiro
Daniel Stenberg [Fri, 19 Nov 2021 15:11:29 +0000 (16:11 +0100)]
tool_findfile: search for a file in the homedir
The homedir() function is now renamed into findfile() and iterates over
all the environment variables trying to access the file in question
until it finds it. Last resort is then getpwuid() if
available. Previously it would first try to find a home directory and if
that was set, insist on checking only that directory for the file. This
now returns the full file name it finds.
The Windows specific checks are now done differently too and in this
order:
1 - %USERPROFILE%
2 - %APPDATA%
3 - %USERPROFILE%\\Application Data
The windows order is modified to match how the Windows 10 ssh tool works
when it searches for .ssh/known_hosts.
Reported-by: jeffrson on github
Co-authored-by: Jay Satiro
Fixes #8033
Closes #8035
Daniel Stenberg [Fri, 26 Nov 2021 13:20:18 +0000 (14:20 +0100)]
docs: consistent manpage SYNOPSIS
Make all libcurl related options use .nf (no fill) for the SYNOPSIS
section - for consistent look. roffit then renders that section using
<pre> (monospace font) in html for the website.
Extended manpage-syntax (test 1173) with a basic check for it.
Closes #8062
Daniel Stenberg [Fri, 26 Nov 2021 13:37:49 +0000 (14:37 +0100)]
RELEASE-NOTES: synced
Patrick Monnerat [Thu, 25 Nov 2021 14:03:56 +0000 (15:03 +0100)]
openldap: handle connect phase with a state machine
Closes #8054
Daniel Stenberg [Fri, 26 Nov 2021 07:46:59 +0000 (08:46 +0100)]
docs: address proselint nits
- avoid exclamation marks
- use consistent number of spaces after periods: one
- avoid clichés
- avoid using 'very'
Closes #8060
Bruno Baguette [Fri, 26 Nov 2021 07:23:34 +0000 (08:23 +0100)]
FAQ: typo fix : "yout" ➤ "your"
Closes #8059
Bruno Baguette [Fri, 26 Nov 2021 07:05:09 +0000 (08:05 +0100)]
docs/INSTALL.md: typo fix : added missing "get" verb
Closes #8058
Daniel Stenberg [Thu, 25 Nov 2021 12:17:49 +0000 (13:17 +0100)]
insecure.d: detail its use for SFTP and SCP as well
Closes #8056
Viktor Szakats [Thu, 25 Nov 2021 17:35:24 +0000 (17:35 +0000)]
Makefile.m32: rename -winssl option to -schannel and tidy up
- accept `-schannel` as an alternative to `CFG` option `-winssl`
(latter still accepted, but deprecated)
- rename internal variable `WINSSL` to `SCHANNEL`
- make the `CFG` option evaluation shorter, without repeating the option
name
Reviewed-by: Marcel Raad
Reviewed-by: Daniel Stenberg
Closes #8053