public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Paul Wouters <paul.wouters@aiven.io>
To: git-commits@fedoraproject.org
Subject: [rpms/libreswan] f45: Merge branch 'rawhide' into f45
Date: Wed, 28 Oct 2026 21:17:14 GMT [thread overview]
Message-ID: <179322223425.1.1864028583667705307.rpms-libreswan-fb0d03fd8fe1@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/libreswan
Branch : f45
Commit : fb0d03fd8fe17387016b8eda69365c2271995802
Author : Paul Wouters <paul.wouters@aiven.io>
Date : 2026-10-28T17:16:56-04:00
Stats : +33/-2 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/libreswan/c/fb0d03fd8fe17387016b8eda69365c2271995802?branch=f45
Log:
Merge branch 'rawhide' into f45
---
diff --git a/libreswan-5.4.1-ipsec_import.patch b/libreswan-5.4.1-ipsec_import.patch
new file mode 100644
index 0000000..06f449c
--- /dev/null
+++ b/libreswan-5.4.1-ipsec_import.patch
@@ -0,0 +1,28 @@
+commit 1437a2158a96a91bc606578e504ae20fa3757485
+Author: Paul Wouters <paul.wouters@aiven.io>
+Date: Wed Oct 28 17:03:48 2026 -0400
+
+ ipsec import: fix automated passwordless pkcs12 import
+
+ If the nss db has no password and the pkcs12 file has no passwd,
+ import it without prompting or needing a tty.
+
+diff --git a/programs/ipsec/ipsec.in b/programs/ipsec/ipsec.in
+index ca5ce0ca05..5eb67e2239 100755
+--- a/programs/ipsec/ipsec.in
++++ b/programs/ipsec/ipsec.in
+@@ -755,7 +755,13 @@ ipsec_import() {
+ exit 1
+ fi
+
+- @@PK12UTIL@@ -i "${pkcs12bundle}" -d "${IPSEC_NSSDIR_SQL}"
++ # First try blanc password to avoid uselessly prompting interactively
++ @@PK12UTIL@@ -i "${pkcs12bundle}" -d "${IPSEC_NSSDIR_SQL}" -W '' -K '' 2>/dev/null
++ if [ $? -gt 0 ]; then
++ # Not the empty password for either nss db or pkcs12 file, so prompt user
++ @@PK12UTIL@@ -i "${pkcs12bundle}" -d "${IPSEC_NSSDIR_SQL}"
++ fi
++
+ # check and correct trust bits
+ set_nss_db_trusts
+ exit 0
diff --git a/libreswan.spec b/libreswan.spec
index 4b64d52..39c73a0 100644
--- a/libreswan.spec
+++ b/libreswan.spec
@@ -44,13 +44,15 @@ Source3: https://download.libreswan.org/cavs/ikev1_dsa.fax.bz2
Source4: https://download.libreswan.org/cavs/ikev1_psk.fax.bz2
Source5: https://download.libreswan.org/cavs/ikev2.fax.bz2
%endif
+# https://github.com/libreswan/libreswan/commit/1437a2158a96a91bc606578e504ae20fa3757485
+Patch1: libreswan-5.4.1-ipsec_import.patch
BuildRequires: audit-libs-devel
BuildRequires: bison
BuildRequires: curl-devel
BuildRequires: flex
BuildRequires: gcc
-BuildRequires: gnupg2
+BuildRequires: openpgpverify
BuildRequires: hostname
BuildRequires: ldns-devel
BuildRequires: libcap-ng-devel
@@ -128,7 +130,7 @@ This package contains the minimal set of daemons and userland tools
for setting up Libreswan.
%prep
-%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
+%{openpgpverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%setup -q -n libreswan-%{version}%{?prever}
# enable crypto-policies support
sed -i "s:#[ ]*include \(.*\)\(/crypto-policies/back-ends/libreswan.config\)$:include \1\2:" configs/ipsec.conf.in
@@ -136,6 +138,7 @@ sed -i "s:#[ ]*include \(.*\)\(/crypto-policies/back-ends/libreswan.config\)$:in
# throws error on s390x
sed -i "s/SUBDIRS += hunkcheck/#SUBDIRS += hunkcheck/" testing/programs/Makefile
%endif
+%autopatch -p1
%build
%make_build \
next reply other threads:[~2026-10-28 21:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-28 21:17 Paul Wouters [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-11-16 22:23 [rpms/libreswan] f45: Merge branch 'rawhide' into f45 Paul Wouters
2026-10-23 14:32 Paul Wouters
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=179322223425.1.1864028583667705307.rpms-libreswan-fb0d03fd8fe1@fedoraproject.org \
--to=paul.wouters@aiven.io \
--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