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: tool_metalink: do not use HAVE_NSS_INITCONTEXT
Date: Tue, 03 Nov 2026 12:35:21 GMT	[thread overview]
Message-ID: <179370932165.1.5505676815135724094.rpms-curl-5fc861594c82@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/curl
            Branch : curl-v8.23.0-3
            Commit : 5fc861594c8253ba0e9045a4fca5d9b4bc69cecc
            Author : Kamil Dudka <kdudka@redhat.com>
            Date   : 2013-12-02T17:07:32+01:00
            Stats  : +56/-0 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/curl/c/5fc861594c8253ba0e9045a4fca5d9b4bc69cecc?branch=curl-v8.23.0-3

            Log:
            tool_metalink: do not use HAVE_NSS_INITCONTEXT

... no longer provided by the configure script

[upstream commit ff9b66a8d4abb2fd92b12ae8ae3e4e7f39856af7]

---
diff --git a/0004-curl-7.33.0-7fc9325a.patch b/0004-curl-7.33.0-7fc9325a.patch
index b78f189..70c1c57 100644
--- a/0004-curl-7.33.0-7fc9325a.patch
+++ b/0004-curl-7.33.0-7fc9325a.patch
@@ -1120,3 +1120,59 @@ index d6b95b7..7da6a3b 100644
 -- 
 1.7.1
 
+
+From a3592df2afa075a2c905638c2d8d3513810eff09 Mon Sep 17 00:00:00 2001
+From: Kamil Dudka <kdudka@redhat.com>
+Date: Mon, 2 Dec 2013 17:00:35 +0100
+Subject: [PATCH 10/10] tool_metalink: do not use HAVE_NSS_INITCONTEXT
+
+... no longer provided by the configure script
+
+[upstream commit ff9b66a8d4abb2fd92b12ae8ae3e4e7f39856af7]
+---
+ src/tool_metalink.c |    8 ++------
+ 1 files changed, 2 insertions(+), 6 deletions(-)
+
+diff --git a/src/tool_metalink.c b/src/tool_metalink.c
+index be5fc26..050f59d 100644
+--- a/src/tool_metalink.c
++++ b/src/tool_metalink.c
+@@ -54,9 +54,7 @@
+ #  define MD5_CTX    void *
+ #  define SHA_CTX    void *
+ #  define SHA256_CTX void *
+-#  ifdef HAVE_NSS_INITCONTEXT
+-     static NSSInitContext *nss_context;
+-#  endif
++   static NSSInitContext *nss_context;
+ #elif (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && \
+               (__MAC_OS_X_VERSION_MAX_ALLOWED >= 1040)) || \
+       (defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && \
+@@ -240,7 +238,6 @@ static int nss_hash_init(void **pctx, SECOidTag hash_alg)
+   PK11Context *ctx;
+ 
+   /* we have to initialize NSS if not initialized alraedy */
+-#ifdef HAVE_NSS_INITCONTEXT
+   if(!NSS_IsInitialized() && !nss_context) {
+     static NSSInitParameters params;
+     params.length = sizeof params;
+@@ -248,7 +245,6 @@ static int nss_hash_init(void **pctx, SECOidTag hash_alg)
+         | NSS_INIT_NOCERTDB   | NSS_INIT_NOMODDB       | NSS_INIT_FORCEOPEN
+         | NSS_INIT_NOROOTINIT | NSS_INIT_OPTIMIZESPACE | NSS_INIT_PK11RELOAD);
+   }
+-#endif
+ 
+   ctx = PK11_CreateDigestContext(hash_alg);
+   if(!ctx)
+@@ -894,7 +890,7 @@ void clean_metalink(struct Configurable *config)
+ 
+ void metalink_cleanup(void)
+ {
+-#if defined(USE_NSS) && defined(HAVE_NSS_INITCONTEXT)
++#ifdef USE_NSS
+   if(nss_context) {
+     NSS_ShutdownContext(nss_context);
+     nss_context = NULL;
+-- 
+1.7.1
+

                 reply	other threads:[~2026-11-03 12:35 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=179370932165.1.5505676815135724094.rpms-curl-5fc861594c82@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