Commit Graph

28338 Commits

Author SHA1 Message Date
Daniel Stenberg
96edc7954f
ngtcp2: disconnect the QUIC connection proper
Reported-by: mehatzri on github
Reviewed-by: Tatsuhiro Tsujikawa
Fixes #8534
closes #8569
2022-03-10 08:26:18 +01:00
Dan Fandrich
2583c3d1ce test386: Fix an incorrect test markup tag 2022-03-09 09:49:20 -08:00
Don
7c44b51956
nonblock: restore setsockopt method to curlx_nonblock
The implementation using setsockopt was removed when BeOS support was
purged. However this functionality wasn't BeOS specific, it is still
used by for example Orbis OS (Playstation 4/5 OS).

Closes #8562
2022-03-09 09:13:42 +01:00
Daniel Stenberg
911714d617
openssl: fix CN check error code
Due to a missing 'else' this returns error too easily.

Regressed in: d15692ebb

Reported-by: Kristoffer Gleditsch
Fixes #8559
Closes #8560
2022-03-08 15:59:04 +01:00
Frank Meier
1b169d5ea1
connect: make Curl_getconnectinfo work with conn cache from share handle
Closes #8524
2022-03-08 09:22:09 +01:00
lwthiker
68dc5bcd46
openssl: enable CURLOPT_SSL_EC_CURVES with BoringSSL
The CURLOPT_SSL_EC_CURVES option (used by the '--curves' flag) in
libcurl was ignored when compiling with BoringSSL because
HAVE_SSL_CTX_SET_EC_CURVES was explicitly disabled if BoringSSL was
detected.  However, this feature is supported in BoringSSL since
5fd1807d. This commit enables it, and also reduces the required minimal
OpenSSL version to 1.0.2 as per OpenSSL's official documentation.

Fixes #8553
Closes #8556
2022-03-08 09:11:19 +01:00
Samuel Henrique
9bd1195150
json.d: fix typo (overriden -> overridden)
Closes #8557
2022-03-07 22:48:10 +01:00
Daniel Stenberg
471d5f44c5
wolfssl: fix compiler error without IPv6
Reported-by: Joseph Chen
Fixes #8550
Closes #8552
2022-03-07 09:47:26 +01:00
Daniel Stenberg
6df30a0ec8
RELEASE-NOTES: synced
and bump pending version to 7.82.1
2022-03-07 09:03:36 +01:00
Paul Howarth
4b01a57c95
runtests: make 'oldlibssh' be before 0.9.4
The 'oldlibssh' feature indicates that the error code returned by libssh
for a broken known_hosts file should be 67 rather than 60 (test1459).
This feature was added as part of #8444 with 'oldlibssh' mapping to
libssh versions prior to 0.9.6, and then refined as part of #8511 to map
to versions prior to 0.9.5.

In Red Hat Enterprise Linux 8.5 there is a patched version of libssh
version 0.9.4 (https://git.centos.org/rpms/libssh/blob/c8/f/SOURCES) in
which test1459 fails because it returns the "new" value rather than the
"old" one. It's plausible that one of the patches is responsible for
this rather than the underlying code but I don't think so.

This change therefore drops the 'oldlibssh' version check to map to
libssh versions older than 0.9.4, which fixes builds on RHEL-8.

Closes #8548
2022-03-07 08:59:03 +01:00
Daniel Stenberg
3beb82b850
ipv4/6.d: clarify that they are about using IP addresses
... they may still *resolve* other families, but not use those
addresses.

Ref: #8530
Closes #8543
2022-03-06 23:32:40 +01:00
r-a-sattarov
a9a8bad3ed
curl/system.h: update ifdef condition for MCST-LCC compiler
in mcst-lcc compiler => 1.25 added a new macro definition to determine
compiler

Closes #8546
2022-03-06 23:28:54 +01:00
Marc Hoersken
f9b212cc84
CI: install Python package impacket to run SMB test 1451
Install Python package impacket in relevant CI workflows.

Follow up to #7935
Supersedes #7940
Closes #8544
2022-03-06 21:22:58 +01:00
MAntoniak
2cd9837e02
connect: use TCP_KEEPALIVE only if TCP_KEEPIDLE is not defined
Closes #8539
2022-03-05 23:57:08 +01:00
Daniel Stenberg
f7d9a76ca7
docs/HYPER.md: updated to reflect current hyper build needs 2022-03-05 23:47:25 +01:00
Daniel Stenberg
2207066446
GHA: build hyper with nightly rustc
Closes #8545
2022-03-05 23:47:18 +01:00
Daniel Stenberg
64db5c575d
RELEASE-NOTES: synced
The 7.82.0 release
2022-03-05 09:43:19 +01:00
Daniel Stenberg
f7c9bfaac8
THANKS: updates from the 7.82.0 release notes 2022-03-05 09:41:24 +01:00
Daniel Stenberg
1fa09990ab
misc: update copyright year ranges 2022-03-05 09:41:24 +01:00
Jay Satiro
522e46c973 unit1610: init SSL library before calling SHA256 functions
The SSL library must be initialized (via global initialization) because
libcurl's SHA256 functions may call SHA256 functions in the SSL library.

Reported-by: Gisle Vanem

Fixes https://github.com/curl/curl/issues/8538
Closes https://github.com/curl/curl/pull/8540
2022-03-05 03:36:09 -05:00
Jay Satiro
c07b95e280 examples/curlx: support building with OpenSSL 1.1.0+
- Access members of X509_STORE_CTX in OpenSSL 1.1.0+ by using API
  functions.

The X509_STORE_CTX struct has been opaque since OpenSSL 1.1.0.

Ref: https://curl.se/mail/lib-2022-03/0004.html

Closes https://github.com/curl/curl/pull/8529
2022-03-02 03:26:57 -05:00
Jay Satiro
592f114c67 h2h3: fix typo
Bug: https://github.com/curl/curl/issues/8381#issuecomment-1055440241
Reported-by: Michael Kaufmann
2022-03-01 13:09:02 -05:00
Farzin
0aa9ea99d2 CURLOPT_XFERINFOFUNCTION.3: fix example struct assignment
Closes https://github.com/curl/curl/pull/8519
2022-02-27 12:17:51 -05:00
Daniel Stenberg
f4f8259d63
azure-pipelines: add a build on Windows with libssh
Closes #8511
2022-02-26 23:44:54 +01:00
Daniel Stenberg
c3c736c061
runtests: make 'oldlibssh' be before 0.9.5
Closes #8511
2022-02-26 23:44:53 +01:00
Daniel Stenberg
8a9d93e32b
libssh: fix include files and defines use for Windows builds
Reported-by: 梦终无痕
Bug: https://curl.se/mail/lib-2022-02/0131.html
Closes #8511
2022-02-26 23:44:53 +01:00
Daniel Stenberg
f066a91b29
RELEASE-NOTES: synced 2022-02-26 16:14:39 +01:00
illusory-dream
2cadc890ce
winbuild: add parameter WITH_SSH
For building with libssh
Closes #8514
2022-02-26 14:17:15 +01:00
Daniel Stenberg
05be234b82
configure: change output for cross-compiled alt-svc support
It said 'no', while it actually is 'yes'

Closes #8512
2022-02-26 13:44:35 +01:00
Daniel Stenberg
2bb5e1c3df
gha: add a macOS CI job with libssh
Closes #8513
2022-02-25 23:26:38 +01:00
Daniel Stenberg
b0325628b4
TODO: remove "Bring back libssh tests on Travis"
The job was added to Circle CI in d8ddd0e753
2022-02-25 11:39:47 +01:00
Daniel Stenberg
01aa021e05
TODO: remove "better persistency for HTTP/1.0"
Let's not bother.
2022-02-25 11:36:02 +01:00
Daniel Stenberg
750af2bb48
TODO: remove "Option to ignore private IP"
... as curl ignores the IP entirely by default these days.
2022-02-25 11:35:23 +01:00
Daniel Stenberg
97b3d83ad5
TODO: remove "hardcode the "localhost" addresses"
This is implmented since 1a0ebf6632
2022-02-25 11:33:53 +01:00
Daniel Stenberg
277256c84d
TODO: 1.24 was a dupe of 1.1 2022-02-25 11:32:48 +01:00
Daniel Stenberg
d8888bfc33
TODO: remove "Typesafe curl_easy_setopt()"
I don't consider this a serious TODO item
2022-02-25 11:31:11 +01:00
Daniel Stenberg
e55bee70f1
KNOWN_BUGS: remove "Uploading HTTP/3 files gets interrupted"
This works now
2022-02-25 11:15:53 +01:00
Daniel Stenberg
d85bc90068
KNOWN_BUGS: remove "HTTP/3 multipart POST with quiche fails"
It works now
2022-02-25 11:14:27 +01:00
Daniel Stenberg
cdf37a53b3
quiche: remove two leftover debug infof() outputs 2022-02-25 11:13:49 +01:00
Tatsuhiro Tsujikawa
6e9373b5f4
ngtcp2: Reset dynbuf when it is fully drained
Reported-by: vl409 on github
Fixes #7351
Closes #8504
2022-02-24 16:56:33 +01:00
Stewart Gebbie
8a1fa3b364
hostip: avoid unused parameter error in Curl_resolv_check
When built without DNS-over-HTTP and without asynchronous resolvers,
neither the dns nor the data parameters are used.

That is Curl_resolv_check appears to call
Curl_resolver_is_resolved(data, dns). But,
with CURL_DISABLE_DOH without CURLRES_ASYNCH, the call is actually
elided via a macro definition.

This fix resolves the resultant: "unused parameter 'data'" error.

Closes #8505
2022-02-24 14:17:33 +01:00
Daniel Stenberg
0694037032
http2: move two infof calls to debug-h2-only
and remove a superflous one

Ref: https://github.com/curl/curl/discussions/8498
Closes #8502
2022-02-24 11:00:12 +01:00
Jean-Philippe Menil
145d0803bb
quiche: fix upload for bigger content-length
Signed-off-by: Jean-Philippe Menil <jpmenil@gmail.com>
Closes #8421
2022-02-24 09:34:37 +01:00
Farzin
4517d8eb6f CURLOPT_PROGRESSFUNCTION.3: fix example struct assignment
Closes https://github.com/curl/curl/pull/8500
2022-02-23 03:13:11 -05:00
Rob Boeckermann
e2e3408222
OS400/README: clarify compilation steps
Closes #8494
2022-02-22 17:54:32 +01:00
Rob Boeckermann
eca5b6aa41
OS400: fix typos in rpg include file
This resolves issues compiling rpg code that includes the curl header
file.

Closes #8494
2022-02-22 17:54:32 +01:00
MAntoniak
e9e79622d0
vtls: fix socket check conditions
fix condition to check the second socket during associate and
disassociate connection

Closes #8493
2022-02-22 13:39:54 +01:00
Daniel Stenberg
999c2179a1
libssh2: don't typecast socket to int for libssh2_session_handshake
Since libssh2_socket_t uses SOCKET on windows which can be larger than
int.

Closes #8492
2022-02-21 17:17:25 +01:00
Daniel Stenberg
441db4652c
RELEASE-NOTES: fix typo and make one desc shorter 2022-02-21 11:09:52 +01:00
Daniel Stenberg
e8f6e274c1
RELEASE-NOTES: synced 2022-02-21 11:00:34 +01:00