public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kamil Dudka <kdudka@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.23.0-3: fix error messages for CURLE_SSL_{CACERT,CRL}_BADFILE
Date: Tue, 03 Nov 2026 12:34:58 GMT	[thread overview]
Message-ID: <179370929853.1.7997634680556018998.rpms-curl-3d7539f03f7a@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/curl
Branch : curl-v8.23.0-3
Commit : 3d7539f03f7aa05e05d21ded7fa00bfbfdb2d2af
Author : Kamil Dudka <kdudka@redhat.com>
Date   : 2013-01-15T13:51:30+01:00
Stats  : +35/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/curl/c/3d7539f03f7aa05e05d21ded7fa00bfbfdb2d2af?branch=curl-v8.23.0-3

Log:
fix error messages for CURLE_SSL_{CACERT,CRL}_BADFILE

---
diff --git a/0003-curl-7.28.1-26613d78.patch b/0003-curl-7.28.1-26613d78.patch
new file mode 100644
index 0000000..2ebe38e
--- /dev/null
+++ b/0003-curl-7.28.1-26613d78.patch
@@ -0,0 +1,30 @@
+From afd2d98b4a9c69fb47048122629fd4be1d40f906 Mon Sep 17 00:00:00 2001
+From: Kamil Dudka <kdudka@redhat.com>
+Date: Tue, 15 Jan 2013 12:58:08 +0100
+Subject: [PATCH 3/3] nss: fix error messages for CURLE_SSL_{CACERT,CRL}_BADFILE
+
+Do not use the error messages from NSS for errors not occurring in NSS.
+
+[upstream commit 26613d781725e39b0f601301a65c64e146977d8f]
+---
+ lib/nss.c |    2 --
+ 1 files changed, 0 insertions(+), 2 deletions(-)
+
+diff --git a/lib/nss.c b/lib/nss.c
+index f97090a..c5dcf52 100644
+--- a/lib/nss.c
++++ b/lib/nss.c
+@@ -1097,10 +1097,8 @@ static bool is_nss_error(CURLcode err)
+   switch(err) {
+   case CURLE_PEER_FAILED_VERIFICATION:
+   case CURLE_SSL_CACERT:
+-  case CURLE_SSL_CACERT_BADFILE:
+   case CURLE_SSL_CERTPROBLEM:
+   case CURLE_SSL_CONNECT_ERROR:
+-  case CURLE_SSL_CRL_BADFILE:
+   case CURLE_SSL_ISSUER_ERROR:
+     return true;
+ 
+-- 
+1.7.1
+

diff --git a/curl.spec b/curl.spec
index 7f6b7f1..800afda 100644
--- a/curl.spec
+++ b/curl.spec
@@ -14,6 +14,9 @@ Patch1: 0001-curl-7.28.1-68d2830e.patch
 # clear session cache if a client cert from file is used
 Patch2: 0002-curl-7.28.1-b36f1d26.patch
 
+# fix error messages for CURLE_SSL_{CACERT,CRL}_BADFILE
+Patch3: 0003-curl-7.28.1-26613d78.patch
+
 # patch making libcurl multilib ready
 Patch101: 0101-curl-7.27.0-multilib.patch
 
@@ -109,6 +112,7 @@ documentation of the library, too.
 # upstream patches
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 # Fedora patches
 %patch101 -p1
@@ -235,6 +239,7 @@ rm -rf $RPM_BUILD_ROOT
 * Tue Jan 15 2013 Kamil Dudka <kdudka@redhat.com> 7.28.1-2
 - prevent NSS from crashing on client auth hook failure
 - clear session cache if a client cert from file is used
+- fix error messages for CURLE_SSL_{CACERT,CRL}_BADFILE
 
 * Tue Nov 20 2012 Kamil Dudka <kdudka@redhat.com> 7.28.1-1
 - new upstream release

                 reply	other threads:[~2026-11-03 12:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179370929853.1.7997634680556018998.rpms-curl-3d7539f03f7a@fedoraproject.org \
    --to=kdudka@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox