]> git.ipfire.org Git - thirdparty/curl.git/log
thirdparty/curl.git
3 years agodocs/INTERNALS.md: clean up, refer to the book
Daniel Stenberg [Thu, 17 Feb 2022 09:49:05 +0000 (10:49 +0100)] 
docs/INTERNALS.md: clean up, refer to the book

The explanatory parts are now in the everything curl book (which can
also use images etc). This document now refers to that resource and only
leaves listings of supported versions of libs, tools and operating
systems. See https://everything.curl.dev/internals

Closes #8467

3 years agodes: fix compile break for OpenSSL without DES
Marcel Raad [Wed, 16 Feb 2022 08:19:58 +0000 (09:19 +0100)] 
des: fix compile break for OpenSSL without DES

When `USE_OPENSSL` was defined but OpenSSL had no DES support and a
different crypto library was used for that, `Curl_des_set_odd_parity`
was called but not defined. This could for example happen on Windows
and macOS when using OpenSSL v3 with deprecated features disabled.

Use the same condition for the function definition as used at the
caller side, but leaving out the OpenSSL part to avoid including
OpenSSL headers.

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

3 years agoRELEASE-NOTES: synced
Daniel Stenberg [Thu, 17 Feb 2022 10:03:27 +0000 (11:03 +0100)] 
RELEASE-NOTES: synced

3 years agodocs/DEPRECATE: remove NPN support in August 2022
Daniel Stenberg [Wed, 16 Feb 2022 10:22:25 +0000 (11:22 +0100)] 
docs/DEPRECATE: remove NPN support in August 2022

Closes #8458

3 years agoftp: provide error message for control bytes in path
Daniel Stenberg [Wed, 16 Feb 2022 12:53:00 +0000 (13:53 +0100)] 
ftp: provide error message for control bytes in path

Closes #8460

3 years agohttp: fix "unused parameter ‘conn’" warning
Daniel Stenberg [Wed, 16 Feb 2022 22:04:07 +0000 (23:04 +0100)] 
http: fix "unused parameter ‘conn’" warning

Follow-up from 7d600ad1c395

Spotted on appveyor

Closes #8465

3 years agosha256: Fix minimum OpenSSL version
Alejandro R. Sedeño [Wed, 16 Feb 2022 21:57:13 +0000 (16:57 -0500)] 
sha256: Fix minimum OpenSSL version

- Change the minimum OpenSSL version for using their SHA256
  implementation from 0.9.7 to 0.9.8.

EVP_sha256() does not appear in the OpenSSL source before 0.9.7h, and
does not get built by default until 0.9.8, so trying to use it for all
0.9.7 is wrong, and before 0.9.8 is unreliable.

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

3 years agoKNOWN_BUGS: remove "slow connect to localhost on Windows"
Daniel Stenberg [Wed, 16 Feb 2022 13:05:00 +0000 (14:05 +0100)] 
KNOWN_BUGS: remove "slow connect to localhost on Windows"

localhost is not resolved anymore since 1a0ebf6632f88

3 years agoKNOWN_BUGS: remove "HTTP/3 download is 5x times slower than HTTP/2"
Daniel Stenberg [Wed, 16 Feb 2022 12:46:04 +0000 (13:46 +0100)] 
KNOWN_BUGS: remove "HTTP/3 download is 5x times slower than HTTP/2"

It's not actually a bug. More like room for improvement.

3 years agoKNOWN_BUGS: remove "HTTP/3 download with quiche halts after a while"
Daniel Stenberg [Wed, 16 Feb 2022 12:35:18 +0000 (13:35 +0100)] 
KNOWN_BUGS: remove "HTTP/3 download with quiche halts after a while"

Follow-up to 96f85a0fef694

3 years agoKNOWN_BUGS: remove "pulseUI vpn" as a problem
Daniel Stenberg [Wed, 16 Feb 2022 12:32:19 +0000 (13:32 +0100)] 
KNOWN_BUGS: remove "pulseUI vpn" as a problem

We haven't heard about this for a long time and rumours have it they
might have fixed it.

3 years agourldata: remove conn->bits.user_passwd
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

3 years agogskit: Convert to using Curl_poll
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

3 years agogskit: Fix initialization of Curl_ssl_gskit struct
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

3 years agogskit: Fix errors from Curl_strerror refactor
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

3 years agontlm: remove unused feature defines 8453/head
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

3 years agoREADME.md: fix link and layout
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

3 years agoKNOWN_BUGS: fix typo "libpsl"
Daniel Stenberg [Mon, 14 Feb 2022 20:18:45 +0000 (21:18 +0100)] 
KNOWN_BUGS: fix typo "libpsl"

3 years agoh2h3: fix compiler warning due to function prototype mismatch
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.

3 years agourlapi: handle "redirects" smarter
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

3 years agocijobs: pick up circleci configure lines better
Daniel Stenberg [Mon, 14 Feb 2022 08:48:05 +0000 (09:48 +0100)] 
cijobs: pick up circleci configure lines better

3 years agocircleci: add a job using wolfSSH
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

3 years agoscripts/ciconfig.pl: show used options not available
Daniel Stenberg [Mon, 14 Feb 2022 07:38:37 +0000 (08:38 +0100)] 
scripts/ciconfig.pl: show used options not available

3 years agocircleci: add a job using libssh
Daniel Stenberg [Sat, 12 Feb 2022 21:57:23 +0000 (22:57 +0100)] 
circleci: add a job using libssh

Closes #8444

3 years agoruntests: set 'oldlibssh' for libssh versions before 0.9.6
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

3 years agoMakefile.am: Generate VS 2022 projects
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

3 years agoprojects: remove support for MSVC before VC10 (Visual Studio 2010)
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

3 years agoprojects: add support for Visual Studio 17 (2022)
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

3 years agoRELEASE-NOTES: synced
Daniel Stenberg [Sun, 13 Feb 2022 11:13:54 +0000 (12:13 +0100)] 
RELEASE-NOTES: synced

3 years agoconnect: follow-up fix the copyright year
Daniel Stenberg [Sun, 13 Feb 2022 11:13:45 +0000 (12:13 +0100)] 
connect: follow-up fix the copyright year

3 years agomisc: remove unused data when IPv6 is not supported
MAntoniak [Mon, 7 Feb 2022 19:47:09 +0000 (20:47 +0100)] 
misc: remove unused data when IPv6 is not supported

Closes #8430

3 years agoscripts/ciconfig: show CI job config info
Daniel Stenberg [Sat, 12 Feb 2022 21:54:27 +0000 (22:54 +0100)] 
scripts/ciconfig: show CI job config info

Closes #8446

3 years agoquiche: handle stream reset
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

3 years agomime: use a define instead of the magic number 24
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

3 years agohostcheck: reduce strlen calls on chained certificates
Henrik Holst [Thu, 10 Feb 2022 20:04:52 +0000 (21:04 +0100)] 
hostcheck: reduce strlen calls on chained certificates

Closes #8428

3 years agomime: some more strlen() call removals.
Patrick Monnerat [Thu, 10 Feb 2022 12:37:48 +0000 (13:37 +0100)] 
mime: some more strlen() call removals.

Closes #8423

3 years agoscripts/cijobs.pl: detect zuul cmake jobs better
Daniel Stenberg [Sat, 12 Feb 2022 15:56:06 +0000 (16:56 +0100)] 
scripts/cijobs.pl: detect zuul cmake jobs better

3 years agourl: exclude zonefrom_url when no ipv6 is available
Daniel Stenberg [Fri, 11 Feb 2022 13:05:57 +0000 (14:05 +0100)] 
url: exclude zonefrom_url when no ipv6 is available

Closes #8439

3 years agoif2ip: make Curl_ipv6_scope a blank macro when IPv6-disabled
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

3 years agomprintf: remove strlen calls on empty strings in dprintf_formatf
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

3 years agowolfssl: return CURLE_AGAIN for the SSL_ERROR_NONE case
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

3 years agowolfssl: when SSL_read() returns zero, check the error
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

3 years agoquiche: after leaving h3_recving state, poll again
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

3 years agoquiche: when *recv_body() returns data, drain it before polling again
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

3 years agoconfigure: fix '--enable-code-coverage' typo
gaoxingwang on github [Thu, 10 Feb 2022 13:20:48 +0000 (21:20 +0800)] 
configure: fix '--enable-code-coverage' typo

Fixes #8425
Closes #8426

3 years agolib/h2h3: #ifdef on ENABLE_QUIC, not the wrong define
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

3 years agohostcheck: pass in pattern length too, to avoid a strlen call
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

3 years agomisc: remove strlen for Curl_checkheaders + Curl_checkProxyheaders
HenrikHolst [Tue, 8 Feb 2022 23:57:00 +0000 (00:57 +0100)] 
misc: remove strlen for Curl_checkheaders + Curl_checkProxyheaders

Closes #8409

3 years agoconfigure: requires --with-nss-deprecated to build with NSS
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

3 years agomqtt: free 'sendleftovers' in disconnect
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

3 years agoopenldap: pass string length arguments to client_write()
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

3 years agomisc: reduce strlen() calls with Curl_dyn_add()
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

3 years agohttp2: fix the array copy to nghttp2_nv
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

3 years agoRELEASE-NOTES: synced
Daniel Stenberg [Wed, 9 Feb 2022 09:09:10 +0000 (10:09 +0100)] 
RELEASE-NOTES: synced

3 years agoscripts/cijobs.pl: output data about all currect CI jobs
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

3 years agomaketgz: return error if 'make dist' fails
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

3 years agoh2h3: pass correct argument types to infof()
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

3 years agolib/Makefile: remove config-tpf.h from the dist
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

3 years agoconfigure: remove support for "embedded ares"
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

3 years agogithub/workflows/mbedtls: fix indent & remove unnecessary line breaks
Sebastian Sterk [Mon, 7 Feb 2022 20:39:58 +0000 (21:39 +0100)] 
github/workflows/mbedtls: fix indent & remove unnecessary line breaks

Closes #8399

3 years agoCI: move the NSS job from zuul to GHA
Daniel Stenberg [Mon, 7 Feb 2022 15:27:01 +0000 (16:27 +0100)] 
CI: move the NSS job from zuul to GHA

Closes #8396

3 years agotests/unit/Makefile.am: add NSS_LIBS to build with NSS fine
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

3 years agocurl-openssl: fix SRP check for OpenSSL 3.0
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

3 years agohttp: make Curl_compareheader() take string length arguments too
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

3 years agovquic/vquic.h: removed the unused H3 psuedo defines
Daniel Stenberg [Sun, 6 Feb 2022 17:18:55 +0000 (18:18 +0100)] 
vquic/vquic.h: removed the unused H3 psuedo defines

3 years agongtcp2: use Curl_pseudo_headers
Daniel Stenberg [Sun, 6 Feb 2022 17:16:30 +0000 (18:16 +0100)] 
ngtcp2: use Curl_pseudo_headers

3 years agoquiche: use Curl_pseudo_headers
Daniel Stenberg [Sun, 6 Feb 2022 17:10:59 +0000 (18:10 +0100)] 
quiche: use Curl_pseudo_headers

3 years agohttp2: use Curl_pseudo_headers
Daniel Stenberg [Sun, 6 Feb 2022 17:04:19 +0000 (18:04 +0100)] 
http2: use Curl_pseudo_headers

3 years agoh2h3: added 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.

3 years agongtcp2/quiche: make :scheme possible to set
Daniel Stenberg [Sun, 6 Feb 2022 15:02:04 +0000 (16:02 +0100)] 
ngtcp2/quiche: make :scheme possible to set

3 years agohttp2: allow CURLOPT_HTTPHEADER change ":scheme"
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

3 years agoh2/h3: provide and refer to pseudo headers as defines
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

3 years agosmb: passing a socket for writing and reading data instead of FIRSTSOCKET
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

3 years agox509asn1: toggle off functions not needed for diff tls backends
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

3 years agolib: move hostcheck and x509sn1 sources to vtls/
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

3 years agoversion_win32: fix warning for `CURL_WINDOWS_APP`
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

3 years agotests/disable-scan.pl: properly detect multiple symbols per line
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

3 years agoconfig.d: Clarify _curlrc filename is still valid on Windows
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

3 years agolib: remove support for CURL_DOES_CONVERSIONS
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

3 years agoTPF: drop support
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

3 years agoscripts/delta: check the file delta for current branch
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

3 years agoruntests.pl: tolerate test directories without Makefile.inc
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

3 years agosetopt: do bounds-check before strdup
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

3 years agombedtls: enable use of mbedtls without filesystem functions support
MAntoniak [Fri, 28 Jan 2022 13:58:04 +0000 (14:58 +0100)] 
mbedtls: enable use of mbedtls without filesystem functions support

Closes #8376

3 years agoconfigure: support specification of a nghttp2 library path
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

3 years agoscripts/release-notes.pl: remove leftover debug output
Daniel Stenberg [Wed, 2 Feb 2022 13:20:23 +0000 (14:20 +0100)] 
scripts/release-notes.pl: remove leftover debug output

3 years agoRELEASE-NOTES: synced
Daniel Stenberg [Wed, 2 Feb 2022 13:18:29 +0000 (14:18 +0100)] 
RELEASE-NOTES: synced

3 years agoscripts/release-notes.pl: fix number extraction for full URLs
Daniel Stenberg [Wed, 2 Feb 2022 13:14:44 +0000 (14:14 +0100)] 
scripts/release-notes.pl: fix number extraction for full URLs

3 years agoscripts/completion.pl: improve zsh completion
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

3 years agoconfigure: use correct CFLAGS for threaded resolver with xlC on AIX
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

3 years agomailmap: Henrik Holst
Daniel Stenberg [Wed, 2 Feb 2022 12:03:38 +0000 (13:03 +0100)] 
mailmap: Henrik Holst

3 years agobuild: fix ngtcp2 crypto library detection
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

3 years agourlapi: remove an unnecessary call to strlen
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

3 years agoscripts/copyright.pl: fix for handling removed files better
Daniel Stenberg [Tue, 1 Feb 2022 15:21:58 +0000 (16:21 +0100)] 
scripts/copyright.pl: fix for handling removed files better

3 years agovxworks: drop support
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

3 years agobase64: remove an unnecessary call to strlen
Henrik Holst [Tue, 1 Feb 2022 12:39:06 +0000 (13:39 +0100)] 
base64: remove an unnecessary call to strlen

Closes #8369

3 years agotool_getparam: initial --json support
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

3 years agocurl_getdate.3: remove pointless .PP line
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

3 years agomulti: grammar fix in comment
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

3 years agoopenldap: fix compiler warning when built without SSL support
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