public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/curl] curl-v8.21.0-9: new upstream release - 8.20.0~rc1
@ 2026-11-02 14:32 Jan Macku
0 siblings, 0 replies; only message in thread
From: Jan Macku @ 2026-11-02 14:32 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/curl
Branch : curl-v8.21.0-9
Commit : 3a83306219af243ad9b1383d11323915ff5395b5
Author : Jan Macku <jamacku@redhat.com>
Date : 2026-04-09T09:11:42+02:00
Stats : +25/-202 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/curl/c/3a83306219af243ad9b1383d11323915ff5395b5?branch=curl-v8.21.0-9
Log:
new upstream release - 8.20.0~rc1
Also temporary disable failing SFTP/SCP and HTTP/3 tests on s390x
SFTP/SCP tests fail due to a libssh port-setting bug on big-endian
("Could not set remote port").
Also make test 2502 and 3300 to avoid parallel execution.
Also increase timeout in test 303
---
diff --git a/001-curl-8.19.0-test459-switch-to-mode-warn-for-stderr-check.patch b/001-curl-8.19.0-test459-switch-to-mode-warn-for-stderr-check.patch
deleted file mode 100644
index daccf3e..0000000
--- a/001-curl-8.19.0-test459-switch-to-mode-warn-for-stderr-check.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 4d4c2c8e09a87de6b66da014cd9e485836e0be43 Mon Sep 17 00:00:00 2001
-From: Daniel Stenberg <daniel@haxx.se>
-Date: Thu, 12 Mar 2026 16:41:47 +0100
-Subject: [PATCH] test459: switch to mode="warn" for stderr check
-
-In a -j192 build, this output used a three-digit number for the output,
-thus wrapping differently and causing it to error.
-
-Reported-by: Carlos Henrique Lima Melara
-
-Closes #20910
-
-(cherry picked from commit d20fa5cd39dea166c013e2377bfbe68e5d54506e)
----
- tests/data/test459 | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/tests/data/test459 b/tests/data/test459
-index 7a2e1db7b3..91f2d67bca 100644
---- a/tests/data/test459
-+++ b/tests/data/test459
-@@ -53,7 +53,7 @@ Content-Type: application/x-www-form-urlencoded
-
- arg
- </protocol>
--<stderr mode="text">
-+<stderr mode="warn">
- Warning: %LOGDIR/config:1 Option 'data' uses argument with unquoted whitespace.%SP
- Warning: This may cause side-effects. Consider double quotes.
- </stderr>
---
-2.53.0
-
diff --git a/002-curl-8.19.0-mldsa-channel-binding.patch b/002-curl-8.19.0-mldsa-channel-binding.patch
deleted file mode 100644
index 0d86756..0000000
--- a/002-curl-8.19.0-mldsa-channel-binding.patch
+++ /dev/null
@@ -1,159 +0,0 @@
-From b0f6e9a3d7be02e8f2e323aa97f2ff9b30662b32 Mon Sep 17 00:00:00 2001
-From: Stefan Eissing <stefan@eissing.org>
-Date: Thu, 26 Feb 2026 10:21:31 +0100
-Subject: [PATCH] openssl channel_binding: lookup digest algorithm without NID
-
-Use an alternate OpenSSL API to get the digest algorithm tied
-to a certificate signature to compute the channel binding.
-
-Fixes #20590
-Reported-by: Rob Crittenden
-Closes #20734
----
- lib/vtls/openssl.c | 97 +++++++++++++++++++++++++++++++++++++++-------
- 1 file changed, 82 insertions(+), 15 deletions(-)
-
-diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
-index 08c20430a21f..0d41aa8f51a8 100644
---- a/lib/vtls/openssl.c
-+++ b/lib/vtls/openssl.c
-@@ -5255,13 +5255,15 @@ static CURLcode ossl_recv(struct Curl_cfilter *cf,
- return result;
- }
-
--static CURLcode ossl_get_channel_binding(struct Curl_easy *data, int sockindex,
-+static CURLcode ossl_get_channel_binding(struct Curl_easy *data,
-+ int sockindex,
- struct dynbuf *binding)
- {
- X509 *cert;
-- int algo_nid;
-- const EVP_MD *algo_type;
-- const char *algo_name;
-+ int mdnid;
-+ bool no_digest_acceptable = FALSE;
-+ const EVP_MD *algo_type = NULL;
-+ const char *algo_name = NULL;
- unsigned int length;
- unsigned char buf[EVP_MAX_MD_SIZE];
-
-@@ -5293,43 +5295,108 @@ static CURLcode ossl_get_channel_binding(struct Curl_easy *data, int sockindex,
- /* No server certificate, do not do channel binding */
- return CURLE_OK;
-
-- if(!OBJ_find_sigid_algs(X509_get_signature_nid(cert), &algo_nid, NULL)) {
-+#ifdef HAVE_OPENSSL3
-+ {
-+ int pknid, secbits;
-+ uint32_t flags;
-+ EVP_PKEY *pkey = X509_get0_pubkey(cert);
-+
-+ if(!X509_get_signature_info(cert, &mdnid, &pknid, &secbits, &flags)) {
-+ failf(data, "certificate signature algorithm not recognized");
-+ result = CURLE_SSL_INVALIDCERTSTATUS;
-+ goto out;
-+ }
-+
-+ if(mdnid != NID_undef) {
-+ if(mdnid == NID_md5 || mdnid == NID_sha1) {
-+ algo_type = EVP_sha256();
-+ }
-+ else
-+ algo_type = EVP_get_digestbynid(mdnid);
-+ }
-+ else if(pkey && !EVP_PKEY_is_a(pkey, OBJ_nid2sn(pknid))) {
-+ /* The cert's pkey is different from the algorithm used to sign
-+ * the certificate. Since the reported `mdnid` is undefined, there
-+ * is no digest algorithm available here. This happens in PQC
-+ * and is accepted, resulting in no addition to the binding. */
-+ no_digest_acceptable = TRUE;
-+ }
-+ else if(pkey) {
-+ /* cert's pkey type is the same as the cert signer (or same family).
-+ * Ask for the mandatory/advisory digest algorithm for the pkey.
-+ */
-+ char mdname[128] = "";
-+ int rc = EVP_PKEY_get_default_digest_name(pkey, mdname, sizeof(mdname));
-+ bool md_is_undef = !strcmp(mdname, "UNDEF");
-+
-+ if(rc == 2 && md_is_undef) {
-+ /* OpenSSL declares "undef" the *mandatory* digest for this key.
-+ * This is some PQC shit, accept it, no addition to binding. */
-+ no_digest_acceptable = TRUE;
-+ }
-+ else if(rc > 0 && mdname[0] != '\0' && !md_is_undef) {
-+ infof(data, "Digest algorithm : %s%s (derived from public key)"
-+ ", but unavailable",
-+ mdname, rc == 2 ? " [mandatory]" : " [advisory]");
-+ }
-+ }
-+ }
-+#else /* HAVE_OPENSSL3 */
-+
-+ if(!OBJ_find_sigid_algs(X509_get_signature_nid(cert), &mdnid, NULL)) {
- failf(data,
- "Unable to find digest NID for certificate signature algorithm");
- result = CURLE_SSL_INVALIDCERTSTATUS;
-- goto error;
-+ goto out;
- }
-
- /* https://datatracker.ietf.org/doc/html/rfc5929#section-4.1 */
-- if(algo_nid == NID_md5 || algo_nid == NID_sha1) {
-+ if(mdnid == NID_md5 || mdnid == NID_sha1) {
- algo_type = EVP_sha256();
- }
- else {
-- algo_type = EVP_get_digestbynid(algo_nid);
-+ algo_type = EVP_get_digestbynid(mdnid);
- if(!algo_type) {
-- algo_name = OBJ_nid2sn(algo_nid);
-+ algo_name = OBJ_nid2sn(mdnid);
- failf(data, "Could not find digest algorithm %s (NID %d)",
-- algo_name ? algo_name : "(null)", algo_nid);
-+ algo_name ? algo_name : "(null)", mdnid);
- result = CURLE_SSL_INVALIDCERTSTATUS;
-- goto error;
-+ goto out;
-+ }
-+ }
-+
-+#endif /* HAVE_OPENSSL3, else */
-+
-+ if(!algo_type) {
-+ if(no_digest_acceptable) {
-+ infof(data, "certificate exposes no signing digest algorithm, "
-+ "nothing to add to channel binding");
-+ result = CURLE_OK;
-+ goto out;
- }
-+ /* unacceptable, something is wrong, fail */
-+ algo_name = OBJ_nid2sn(mdnid);
-+ failf(data, "Unable to find digest algorithm %s (NID %d) "
-+ "for channel binding", algo_name ? algo_name : "(null)", mdnid);
-+ result = CURLE_SSL_INVALIDCERTSTATUS;
-+ goto out;
- }
-
- if(!X509_digest(cert, algo_type, buf, &length)) {
-- failf(data, "X509_digest() failed");
-+ failf(data, "X509_digest() failed for channel binding");
- result = CURLE_SSL_INVALIDCERTSTATUS;
-- goto error;
-+ goto out;
- }
-
- /* Append "tls-server-end-point:" */
- result = curlx_dyn_addn(binding, prefix, sizeof(prefix) - 1);
- if(result)
-- goto error;
-+ goto out;
-
- /* Append digest */
- result = curlx_dyn_addn(binding, buf, length);
-
--error:
-+out:
- X509_free(cert);
- return result;
- }
diff --git a/curl.spec b/curl.spec
index fbb0815..5234e66 100644
--- a/curl.spec
+++ b/curl.spec
@@ -11,8 +11,8 @@
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
Name: curl
-Version: 8.19.0
-Release: 3%{?dist}
+Version: 8.20.0~rc1
+Release: 1%{?dist}
License: curl
Source0: https://curl.se/download/%{name}-%{version_no_tilde}.tar.xz
Source1: https://curl.se/download/%{name}-%{version_no_tilde}.tar.xz.asc
@@ -21,11 +21,6 @@ Source1: https://curl.se/download/%{name}-%{version_no_tilde}.tar.xz.asc
# which points to the GPG key as of April 7th 2016 of https://daniel.haxx.se/mykey.asc
Source2: mykey.asc
-# Fix test459 to pass when running tests in parallel
-Patch001: 001-curl-8.19.0-test459-switch-to-mode-warn-for-stderr-check.patch
-# Don't fail channel binding for ML-DSA certificates
-Patch002: 002-curl-8.19.0-mldsa-channel-binding.patch
-
# patch making libcurl multilib ready
Patch101: 0101-curl-7.32.0-multilib.patch
@@ -247,6 +242,23 @@ be installed.
# <https://github.com/bagder/curl/commit/21e82bd6#commitcomment-12226582>
printf "1801\n" >>tests/data/DISABLED
+# test 303: raise timeout from 8s to 20s so it doesn't expire during TLS
+# handshake under valgrind
+%ifarch x86_64
+sed -e 's|-m 8|-m 20|' -i tests/data/test303
+%endif
+
+%ifarch s390x
+# SFTP/SCP tests fail due to libssh port-setting bug on big-endian
+# ("Could not set remote port")
+printf "582\n600\n601\n602\n603\n604\n605\n606\n607\n608\n" >>tests/data/DISABLED
+printf "609\n610\n611\n612\n613\n614\n615\n616\n617\n618\n" >>tests/data/DISABLED
+printf "619\n620\n621\n622\n623\n624\n625\n626\n627\n628\n" >>tests/data/DISABLED
+printf "629\n630\n631\n633\n634\n635\n636\n637\n638\n639\n" >>tests/data/DISABLED
+printf "640\n641\n642\n656\n664\n665\n" >>tests/data/DISABLED
+printf "1446\n1459\n1583\n2004\n2007\n" >>tests/data/DISABLED
+%endif
+
# test3026: avoid pthread_create() failure due to resource exhaustion on i386
%ifarch %{ix86}
sed -e 's|NUM_THREADS 1000$|NUM_THREADS 256|' \
@@ -372,7 +384,7 @@ for size in minimal full; do (
export LD_LIBRARY_PATH="${PWD}/lib/.libs"
# tests that must run in serial to avoid intermittent failures under parallel execution
- serial_tests="766 2502"
+ serial_tests="766 2404 2502 3300"
serial_excludes=$(for t in $serial_tests; do printf ' !%s' "$t"; done)
# run the bulk of tests in parallel, excluding serial ones
# cap at 64 jobs to avoid overwhelming system resources on high-CPU machines
@@ -452,6 +464,9 @@ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/wcurl.1*
%{_libdir}/libcurl.so.4.[0-9].[0-9].minimal
%changelog
+* Tue Apr 07 2026 Jan Macku <jamacku@redhat.com> - 8.20.0~rc1-1
+- new upstream release candidate
+
* Tue Mar 24 2026 Rob Crittenden <rcritten@redhat.com> - 8.19.0-3
- openssl channel_binding: lookup digest algorithm without NID
diff --git a/sources b/sources
index e059a73..f0e255e 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (curl-8.19.0.tar.xz.asc) = ea3d4f2f42ec6571340e982868c5a35836eed2b76109b08b90b98023474293ad33a7218da511f153d01de607b735fc039a0733fa09fddd984fd7e2c61ee0446a
-SHA512 (curl-8.19.0.tar.xz) = ee97faaf588b255428000599293c47a2f648af11d1a0b7b823db6aec151e2090f5c7b921745ddb2c3818d92b16e0a4c15d7a9b3d1ff45df1f35438504bd16574
+SHA512 (curl-8.20.0-rc1.tar.xz) = 5bbdd09dc3471cb1ce0888f4e5be612fc67cf5b3c34a7833071dbf76b26f330d4838680979117092605746ae585f338e514e3bd8c74e9fdf3b71ee0846bbc43a
+SHA512 (curl-8.20.0-rc1.tar.xz.asc) = e8c288cb8319f61b013b720d499ae38a33c9b76f87f07deb313be5a2f301834f9457f013d6b41083c976b234f4414b448fc387c5f9320830b42e4f84cf1cc396
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-02 14:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-02 14:32 [rpms/curl] curl-v8.21.0-9: new upstream release - 8.20.0~rc1 Jan Macku
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox