]>
git.ipfire.org Git - thirdparty/curl.git/log
Daniel Stenberg [Mon, 14 Feb 2022 16:33:50 +0000 (17:33 +0100)]
urldata: remove conn->bits.user_passwd
The authentication status should be told by the transfer and not the
connection.
Reported-by: John H. Ayad
Fixes #8449
Closes #8451
Kevin Adler [Mon, 24 Jan 2022 22:59:03 +0000 (16:59 -0600)]
gskit: Convert to using Curl_poll
As mentioned in
32766cb , gskit was the last user of Curl_select which is
now gone. Convert to using Curl_poll to allow build to work on IBM i.
Closes #8454
Kevin Adler [Mon, 24 Jan 2022 22:56:38 +0000 (16:56 -0600)]
gskit: Fix initialization of Curl_ssl_gskit struct
In
c30bf22 , Curl_ssl_getsock was factored out in to a member of
struct Curl_ssl but the gskit initialization was not updated to reflect
this new member.
Closes #8454
Kevin Adler [Mon, 24 Jan 2022 22:50:36 +0000 (16:50 -0600)]
gskit: Fix errors from Curl_strerror refactor
2f0bb864c1 replaced sterror with Curl_strerror, but the strerror buffer
shadows the set_buffer "buffer" parameter. To keep consistency with the
other functions that use Curl_strerror, rename the parameter.
In addition, strerror.h is needed for the definition of STRERROR_LEN.
Closes #8454
Marcel Raad [Tue, 15 Feb 2022 12:50:06 +0000 (13:50 +0100)]
ntlm: remove unused feature defines
They're not used anymore and always supported.
Closes https://github.com/curl/curl/pull/8453
Kantanat Wannapaka [Mon, 14 Feb 2022 08:48:42 +0000 (15:48 +0700)]
README.md: fix link and layout
replace <a></a> tags and <img></img> tags
Closes #8448
Daniel Stenberg [Mon, 14 Feb 2022 20:18:45 +0000 (21:18 +0100)]
KNOWN_BUGS: fix typo "libpsl"
Jay Satiro [Mon, 14 Feb 2022 21:45:14 +0000 (16:45 -0500)]
h2h3: fix compiler warning due to function prototype mismatch
- Add missing const qualifier in Curl_pseudo_headers declaration.
Stefan Eissing [Mon, 14 Feb 2022 10:43:04 +0000 (11:43 +0100)]
urlapi: handle "redirects" smarter
- avoid one malloc when setting a new url via curl_url_set()
and CURLUPART_URL.
- extract common pattern into a new static function.
Closes #8450
Daniel Stenberg [Mon, 14 Feb 2022 08:48:05 +0000 (09:48 +0100)]
cijobs: pick up circleci configure lines better
Daniel Stenberg [Sat, 12 Feb 2022 22:14:16 +0000 (23:14 +0100)]
circleci: add a job using wolfSSH
Build only, no tests.
Closes #8445
Daniel Stenberg [Mon, 14 Feb 2022 07:38:37 +0000 (08:38 +0100)]
scripts/ciconfig.pl: show used options not available
Daniel Stenberg [Sat, 12 Feb 2022 21:57:23 +0000 (22:57 +0100)]
circleci: add a job using libssh
Closes #8444
Daniel Stenberg [Sun, 13 Feb 2022 10:12:56 +0000 (11:12 +0100)]
runtests: set 'oldlibssh' for libssh versions before 0.9.6
... and make test 1459 check for the different return code then.
Closes #8444
Jay Satiro [Sun, 13 Feb 2022 21:26:41 +0000 (16:26 -0500)]
Makefile.am: Generate VS 2022 projects
Follow-up to
f13d4d0 which added VS 2022 project support.
Ref: https://github.com/curl/curl/pull/8438
Daniel Stenberg [Sun, 13 Feb 2022 10:29:49 +0000 (11:29 +0100)]
projects: remove support for MSVC before VC10 (Visual Studio 2010)
- Remove Visual Studio project files for VC6, VC7, VC7.1, VC8 and VC9.
Those versions are too old to be maintained any longer.
Closes https://github.com/curl/curl/pull/8442
Stav Nir [Fri, 11 Feb 2022 11:49:11 +0000 (13:49 +0200)]
projects: add support for Visual Studio 17 (2022)
Closes https://github.com/curl/curl/pull/8438
Daniel Stenberg [Sun, 13 Feb 2022 11:13:54 +0000 (12:13 +0100)]
RELEASE-NOTES: synced
Daniel Stenberg [Sun, 13 Feb 2022 11:13:45 +0000 (12:13 +0100)]
connect: follow-up fix the copyright year
MAntoniak [Mon, 7 Feb 2022 19:47:09 +0000 (20:47 +0100)]
misc: remove unused data when IPv6 is not supported
Closes #8430
Daniel Stenberg [Sat, 12 Feb 2022 21:54:27 +0000 (22:54 +0100)]
scripts/ciconfig: show CI job config info
Closes #8446
Daniel Stenberg [Fri, 11 Feb 2022 22:05:10 +0000 (23:05 +0100)]
quiche: handle stream reset
A stream reset now causes a CURLE_PARTIAL_FILE error. I'm not convinced
this is the right action nor the right error code.
Reported-by: Lucas Pardue
Fixes #8437
Closes #8440
Daniel Stenberg [Fri, 11 Feb 2022 22:21:38 +0000 (23:21 +0100)]
mime: use a define instead of the magic number 24
MIME_BOUNDARY_DASHES is now the number of leading dashes in the
generated boundary string.
Closes #8441
Henrik Holst [Thu, 10 Feb 2022 20:04:52 +0000 (21:04 +0100)]
hostcheck: reduce strlen calls on chained certificates
Closes #8428
Patrick Monnerat [Thu, 10 Feb 2022 12:37:48 +0000 (13:37 +0100)]
mime: some more strlen() call removals.
Closes #8423
Daniel Stenberg [Sat, 12 Feb 2022 15:56:06 +0000 (16:56 +0100)]
scripts/cijobs.pl: detect zuul cmake jobs better
Daniel Stenberg [Fri, 11 Feb 2022 13:05:57 +0000 (14:05 +0100)]
url: exclude zonefrom_url when no ipv6 is available
Closes #8439
Daniel Stenberg [Fri, 11 Feb 2022 11:43:00 +0000 (12:43 +0100)]
if2ip: make Curl_ipv6_scope a blank macro when IPv6-disabled
Closes #8439
Henrik Holst [Thu, 10 Feb 2022 17:47:08 +0000 (18:47 +0100)]
mprintf: remove strlen calls on empty strings in dprintf_formatf
Turns out that in dprintf_formatf we did a strlen on empty strings, a
bit strange is how common this actually is, 24 alone when doing a simple
GET from https://curl.se
Closes #8427
Daniel Stenberg [Fri, 11 Feb 2022 09:41:28 +0000 (10:41 +0100)]
wolfssl: return CURLE_AGAIN for the SSL_ERROR_NONE case
Closes #8431
Daniel Stenberg [Thu, 10 Feb 2022 22:50:35 +0000 (23:50 +0100)]
wolfssl: when SSL_read() returns zero, check the error
Returning zero indicates end of connection, so if there's no data read
but the connection is alive, it needs to return -1 with CURLE_AGAIN.
Closes #8431
Daniel Stenberg [Fri, 11 Feb 2022 08:26:07 +0000 (09:26 +0100)]
quiche: after leaving h3_recving state, poll again
This could otherwise easily leave libcurl "hanging" after the entire
transfer is done but without noticing the end-of-transfer signal.
Assisted-by: Lucas Pardue
Closes #8436
Daniel Stenberg [Thu, 10 Feb 2022 22:28:46 +0000 (23:28 +0100)]
quiche: when *recv_body() returns data, drain it before polling again
Assisted-by: Lucas Pardue
Closes #8429
gaoxingwang on github [Thu, 10 Feb 2022 13:20:48 +0000 (21:20 +0800)]
configure: fix '--enable-code-coverage' typo
Fixes #8425
Closes #8426
Daniel Stenberg [Thu, 10 Feb 2022 13:07:21 +0000 (14:07 +0100)]
lib/h2h3: #ifdef on ENABLE_QUIC, not the wrong define
Otherwise the build fails when H3 is enabled but the build doesn't
include nghttp2.
Closes #8424
Daniel Stenberg [Wed, 9 Feb 2022 16:27:09 +0000 (17:27 +0100)]
hostcheck: pass in pattern length too, to avoid a strlen call
Removes one strlen() call per SAN name in a cert-check.
Closes #8418
HenrikHolst [Tue, 8 Feb 2022 23:57:00 +0000 (00:57 +0100)]
misc: remove strlen for Curl_checkheaders + Curl_checkProxyheaders
Closes #8409
Daniel Stenberg [Mon, 7 Feb 2022 13:20:03 +0000 (14:20 +0100)]
configure: requires --with-nss-deprecated to build with NSS
Add deprecation plans to docs/DEPRECATE.md
Closes #8395
Daniel Stenberg [Wed, 9 Feb 2022 11:29:31 +0000 (12:29 +0100)]
mqtt: free 'sendleftovers' in disconnect
Fix a memory-leak
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=43646
Closes #8415
Patrick Monnerat [Tue, 8 Feb 2022 10:52:03 +0000 (11:52 +0100)]
openldap: pass string length arguments to client_write()
This uses the new STRCONST() macro and saves 2 strlen() calls on short
string constants per LDIF output line.
Closes #8404
HenrikHolst [Mon, 7 Feb 2022 18:25:09 +0000 (19:25 +0100)]
misc: reduce strlen() calls with Curl_dyn_add()
Use STRCONST() to switch from Curl_dyn_add() to Curl_dyn_addn() for
string literals.
Closes #8398
Daniel Stenberg [Wed, 9 Feb 2022 10:58:58 +0000 (11:58 +0100)]
http2: fix the array copy to nghttp2_nv
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=44517
Follow-up to
9f985a11e794
Closes #8414
Daniel Stenberg [Wed, 9 Feb 2022 09:09:10 +0000 (10:09 +0100)]
RELEASE-NOTES: synced
Daniel Stenberg [Tue, 8 Feb 2022 13:47:17 +0000 (14:47 +0100)]
scripts/cijobs.pl: output data about all currect CI jobs
This script parses the config files for all the CI services currently in
use and output the information in a uniform way. The idea is that the
output from this script should be possible to massage into informational
tables or graphs to help us visualize what they are all testing and NOT
testing.
Closes #8408
Daniel Stenberg [Tue, 8 Feb 2022 08:33:38 +0000 (09:33 +0100)]
maketgz: return error if 'make dist' fails
To better detect this problem in CI jobs
Reported-by: Marcel Raad
Bug: https://curl.se/mail/lib-2022-02/0070.html
Closes #8402
Daniel Stenberg [Tue, 8 Feb 2022 07:25:38 +0000 (08:25 +0100)]
h2h3: pass correct argument types to infof()
Detected by Coverity. CID
1497993
Closes #8401
Daniel Stenberg [Tue, 8 Feb 2022 08:36:41 +0000 (09:36 +0100)]
lib/Makefile: remove config-tpf.h from the dist
Follow-up from
da15443dddea2bfb . Missed before because the 'distcheck'
CI job was not working as intended.
Reported-by: Marcel Raad
Bug: https://curl.se/mail/lib-2022-02/0070.html
Closes #8403
Daniel Stenberg [Mon, 7 Feb 2022 16:17:31 +0000 (17:17 +0100)]
configure: remove support for "embedded ares"
In March 2010 (commit
4259d2df7dd ) we removed the embedded 'ares'
directory from the curl source tree but we have since supported
especially detecting and using that build directory. The time has come
to remove that kludge and ask users to specify the c-ares dir correctly
with --enable-ares.
Closes #8397
Sebastian Sterk [Mon, 7 Feb 2022 20:39:58 +0000 (21:39 +0100)]
github/workflows/mbedtls: fix indent & remove unnecessary line breaks
Closes #8399
Daniel Stenberg [Mon, 7 Feb 2022 15:27:01 +0000 (16:27 +0100)]
CI: move the NSS job from zuul to GHA
Closes #8396
Daniel Stenberg [Mon, 7 Feb 2022 15:59:54 +0000 (16:59 +0100)]
tests/unit/Makefile.am: add NSS_LIBS to build with NSS fine
Closes #8396
Marcel Raad [Sun, 6 Feb 2022 11:26:29 +0000 (12:26 +0100)]
curl-openssl: fix SRP check for OpenSSL 3.0
When OpenSSL 3.0 is built with `--api=3.0` and `no-deprecated`, the SRP
functions exist in the library, but are disabled for user code. Check
if they are actually usable instead of only if they exist. Also, check
for the functions actually required for TLS-SRP.
TLS-SRP support is still enabled if OpenSSL is configured with just
`--api=3.0` or with `--api=1.1.1 no-deprecated`.
Closes https://github.com/curl/curl/pull/8394
HenrikHolst [Fri, 4 Feb 2022 19:41:35 +0000 (20:41 +0100)]
http: make Curl_compareheader() take string length arguments too
Also add STRCONST, a macro that returns a string literal and it's length
for functions that take "string,len"
Removes unnecesary calls to strlen().
Closes #8391
Daniel Stenberg [Sun, 6 Feb 2022 17:18:55 +0000 (18:18 +0100)]
vquic/vquic.h: removed the unused H3 psuedo defines
Daniel Stenberg [Sun, 6 Feb 2022 17:16:30 +0000 (18:16 +0100)]
ngtcp2: use Curl_pseudo_headers
Daniel Stenberg [Sun, 6 Feb 2022 17:10:59 +0000 (18:10 +0100)]
quiche: use Curl_pseudo_headers
Daniel Stenberg [Sun, 6 Feb 2022 17:04:19 +0000 (18:04 +0100)]
http2: use Curl_pseudo_headers
Daniel Stenberg [Sun, 6 Feb 2022 16:52:16 +0000 (17:52 +0100)]
h2h3: added Curl_pseudo_headers()
For use with both http2 and http3 requests.
Daniel Stenberg [Sun, 6 Feb 2022 15:02:04 +0000 (16:02 +0100)]
ngtcp2/quiche: make :scheme possible to set
Daniel Stenberg [Sat, 5 Feb 2022 22:51:05 +0000 (23:51 +0100)]
http2: allow CURLOPT_HTTPHEADER change ":scheme"
The only h2 psuedo header that wasn't previously possible to change by a
user. This change also makes it impossible to send a HTTP/1 header that
starts with a colon, which I don't think anyone does anyway.
The other pseudo headers are possible to change indirectly by doing the
rightly crafted request.
Reported-by: siddharthchhabrap on github
Fixes #8381
Closes #8393
Daniel Stenberg [Fri, 4 Feb 2022 15:57:38 +0000 (16:57 +0100)]
h2/h3: provide and refer to pseudo headers as defines
... and do sizeof() on the defines to use constants better.
Closes #8389
MAntoniak [Thu, 3 Feb 2022 21:54:00 +0000 (22:54 +0100)]
smb: passing a socket for writing and reading data instead of FIRSTSOCKET
Closes #8383
Daniel Stenberg [Fri, 4 Feb 2022 10:06:39 +0000 (11:06 +0100)]
x509asn1: toggle off functions not needed for diff tls backends
... and clean the header file from private defines/structs (move to C
file) and unused function prototypes.
Closes #8386
Daniel Stenberg [Fri, 4 Feb 2022 09:44:02 +0000 (10:44 +0100)]
lib: move hostcheck and x509sn1 sources to vtls/
... since they are used strictly by TLS code.
Closes #8386
Marcel Raad [Fri, 4 Feb 2022 09:06:47 +0000 (10:06 +0100)]
version_win32: fix warning for `CURL_WINDOWS_APP`
The build version is not supported by the UWP code.
Closes https://github.com/curl/curl/pull/8385
Daniel Stenberg [Fri, 4 Feb 2022 13:46:29 +0000 (14:46 +0100)]
tests/disable-scan.pl: properly detect multiple symbols per line
Test 1165 would fail on some systems because it didn't detect
CURL_DISABLE_* symbols that were used to the right of another one on the
same line! The script would only detect and extract the first one.
Reported-by: Marcel Raad
Fixes #8384
Closes #8388
Jay Satiro [Thu, 3 Feb 2022 22:07:53 +0000 (17:07 -0500)]
config.d: Clarify _curlrc filename is still valid on Windows
Recent changes added support for filename .curlrc on Windows, and
when it's not found curl falls back on the original Windows filename
_curlrc. _curlrc was removed from the doc, however it is still valid.
Closes https://github.com/curl/curl/pull/8382
Daniel Stenberg [Thu, 3 Feb 2022 12:04:30 +0000 (13:04 +0100)]
lib: remove support for CURL_DOES_CONVERSIONS
TPF was the only user and support for that was dropped.
Closes #8378
Daniel Stenberg [Thu, 3 Feb 2022 09:42:02 +0000 (10:42 +0100)]
TPF: drop support
There has been no TPF related changes done since September 2010 (commit
7e1a45e224e57 ) and since this is a platform that is relatively different
than many others (== needs attention), I draw the conclusion that this
build is broken since a long time.
Closes #8378
Daniel Stenberg [Thu, 3 Feb 2022 22:42:02 +0000 (23:42 +0100)]
scripts/delta: check the file delta for current branch
... also polish the output style a little bit
Fabian Keil [Tue, 1 Feb 2022 10:46:53 +0000 (11:46 +0100)]
runtests.pl: tolerate test directories without Makefile.inc
Silences the following warnings when using a Makefile.inc-free
TESTDIR using the "-o" argument:
readline() on closed filehandle D at ./runtests.pl line 592.
Use of uninitialized value $disttests in pattern match (m//) at
./runtests.pl line 3602.
Closes https://github.com/curl/curl/pull/8379
HenrikHolst [Thu, 3 Feb 2022 00:03:42 +0000 (01:03 +0100)]
setopt: do bounds-check before strdup
Curl_setstropt() allocated memory for the string before checking if the
string was within bounds. The bounds check should be done first.
Closes #8377
MAntoniak [Fri, 28 Jan 2022 13:58:04 +0000 (14:58 +0100)]
mbedtls: enable use of mbedtls without filesystem functions support
Closes #8376
Bernhard Walle [Fri, 28 Jan 2022 15:31:18 +0000 (16:31 +0100)]
configure: support specification of a nghttp2 library path
This enables using --with-nghttp2=<dir> on systems without pkg-config.
Closes #8375
Daniel Stenberg [Wed, 2 Feb 2022 13:20:23 +0000 (14:20 +0100)]
scripts/release-notes.pl: remove leftover debug output
Daniel Stenberg [Wed, 2 Feb 2022 13:18:29 +0000 (14:18 +0100)]
RELEASE-NOTES: synced
Daniel Stenberg [Wed, 2 Feb 2022 13:14:44 +0000 (14:14 +0100)]
scripts/release-notes.pl: fix number extraction for full URLs
Leah Neukirchen [Mon, 31 Jan 2022 17:28:01 +0000 (18:28 +0100)]
scripts/completion.pl: improve zsh completion
- Detect all spellings of <file>, <file name> etc as well as <path>.
- Only complete directories for <dir>.
- Complete URLs for <URL>.
- Complete --request and --ftp-method.
Closes #8363
Davide Cassioli [Mon, 24 Jan 2022 13:24:45 +0000 (14:24 +0100)]
configure: use correct CFLAGS for threaded resolver with xlC on AIX
Fixes #8276
Closes #8374
Daniel Stenberg [Wed, 2 Feb 2022 12:03:38 +0000 (13:03 +0100)]
mailmap: Henrik Holst
Jay Satiro [Tue, 1 Feb 2022 22:44:26 +0000 (17:44 -0500)]
build: fix ngtcp2 crypto library detection
- Change library link check for ngtcp2_crypto_{gnutls,openssl} to
to use function ngtcp2_crypto_recv_client_initial_cb instead of
ngtcp2_crypto_ctx_initial.
The latter function is no longer external since two days ago in
ngtcp2/ngtcp2@
533451f . curl HTTP/3 CI builds have been failing since
then because they would not link to the ngtcp2 crypto library.
Ref: https://github.com/ngtcp2/ngtcp2/pull/356
Closes https://github.com/curl/curl/pull/8372
HenrikHolst [Tue, 1 Feb 2022 12:50:21 +0000 (13:50 +0100)]
urlapi: remove an unnecessary call to strlen
- Use strcpy instead of strlen+memcpy to copy the url path.
Ref: https://curl.se/mail/lib-2022-02/0006.html
Closes https://github.com/curl/curl/pull/8370
Daniel Stenberg [Tue, 1 Feb 2022 15:21:58 +0000 (16:21 +0100)]
scripts/copyright.pl: fix for handling removed files better
Daniel Stenberg [Mon, 31 Jan 2022 16:41:38 +0000 (17:41 +0100)]
vxworks: drop support
No changes or fixes in vxworks related code since 2009 leads me to
believe that this doesn't work anymore.
Closes #8362
Henrik Holst [Tue, 1 Feb 2022 12:39:06 +0000 (13:39 +0100)]
base64: remove an unnecessary call to strlen
Closes #8369
Daniel Stenberg [Fri, 21 Jan 2022 08:38:44 +0000 (09:38 +0100)]
tool_getparam: initial --json support
Adds these test cases:
383 - simple single command line option
384 - reading it from stdin
385 - getting two --json options on command line
386 - --next works after --json
Closes #8314
Bjarni Ingi Gislason [Tue, 1 Feb 2022 08:43:21 +0000 (09:43 +0100)]
curl_getdate.3: remove pointless .PP line
mandoc: WARNING: skipping paragraph macro: PP empty
Reported-by: Samuel Henrique
Closes #8365
Sebastian Sterk [Mon, 31 Jan 2022 23:05:00 +0000 (00:05 +0100)]
multi: grammar fix in comment
After 'must', the verb is used without 'to'. Correct: "must" or "have
to"
Closes #8368
Daniel Stenberg [Mon, 31 Jan 2022 21:47:48 +0000 (22:47 +0100)]
openldap: fix compiler warning when built without SSL support
openldap.c:841:52: error: unused parameter ‘data’ [-Werror=unused-parameter]
Closes #8367
Samuel Henrique [Mon, 31 Jan 2022 19:44:58 +0000 (19:44 +0000)]
CURLSHOPT_LOCKFUNC.3: fix typo "relased" -> "released"
Found when packaging 7.81.0 for Debian.
Closes #8364
Daniel Stenberg [Mon, 31 Jan 2022 09:12:28 +0000 (10:12 +0100)]
netware: remove support
There are no current users and no Netware related changes done in the
code for over 13 years is a clear sign this is abandoned.
Closes #8358
Daniel Stenberg [Mon, 31 Jan 2022 11:52:29 +0000 (12:52 +0100)]
CI: move two jobs from Zuul to Circle CI
- openssl-no-verbose
- openssl-no-proxy
Closes #8359
Daniel Stenberg [Mon, 31 Jan 2022 09:03:15 +0000 (10:03 +0100)]
cirlceci: also run a c-ares job on arm with debug enabled
Closes #8357
Daniel Stenberg [Mon, 31 Jan 2022 08:41:31 +0000 (09:41 +0100)]
ci: move the OpenSSL + c-ares job from Zuul to Circle CI
Closes #8357
Daniel Stenberg [Mon, 31 Jan 2022 08:39:36 +0000 (09:39 +0100)]
mailmap: Jan-Piet Mens
luminixinc on github [Thu, 27 Jan 2022 21:52:26 +0000 (11:52 -1000)]
multi: remember connection_id before returning connection to pool
Fix a bug that does not require a new CVE as discussed on hackerone.com.
Previously `connection_id` was accessed after returning connection to
the shared pool.
Bug: https://hackerone.com/reports/
1463013
Closes #8355
Jay Satiro [Mon, 31 Jan 2022 06:04:19 +0000 (01:04 -0500)]
write-out.d: Fix num_headers formatting
Jan-Piet Mens [Sun, 30 Jan 2022 11:57:24 +0000 (12:57 +0100)]
docs: capitalize the name 'Netscape'
Closes https://github.com/curl/curl/pull/8354
Daniel Stenberg [Sun, 30 Jan 2022 11:48:27 +0000 (12:48 +0100)]
RELEASE-NOTES: synced
Antoine Pietri [Thu, 27 Jan 2022 01:12:50 +0000 (02:12 +0100)]
docs: grammar proofread, typo fixes
(Partially automated) proofread of most of the documentation, leading to
various typo fixes.
Closes #8353