public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/bind] f45: Try to work even without pkcs11 engine used
@ 2026-10-16 14:52 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-10-16 14:52 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/bind
Branch : f45
Commit : 1e2d850613b74aa87749fa55e6ce2a76062cd5da
Author : Petr Menšík <pemensik@redhat.com>
Date   : 2026-10-13T19:50:58+02:00
Stats  : +65/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/bind/c/1e2d850613b74aa87749fa55e6ce2a76062cd5da?branch=f45

Log:
Try to work even without pkcs11 engine used

---
diff --git a/bind-9.18-d-systest-keyfromlabel-noengine.patch b/bind-9.18-d-systest-keyfromlabel-noengine.patch
new file mode 100644
index 0000000..aa96580
--- /dev/null
+++ b/bind-9.18-d-systest-keyfromlabel-noengine.patch
@@ -0,0 +1,63 @@
+From fea633b14bee8c7730d2b800dd011f4e67e363c2 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
+Date: Fri, 9 Oct 2026 18:10:28 +0200
+Subject: [PATCH] Make usage of engine optional
+
+We backported support for labels also into our 9.18 version. It should
+work even without -E pkcs11. But it requires special openssl
+configuration to enable the provider. Skip the test unless OPENSSL_CONF
+environment is not called openssl-provider.cnf.
+---
+ bin/tests/system/conf.sh.in                         | 3 +++
+ bin/tests/system/keyfromlabel/tests_keyfromlabel.py | 7 +++----
+ 2 files changed, 6 insertions(+), 4 deletions(-)
+
+diff --git a/bin/tests/system/conf.sh.in b/bin/tests/system/conf.sh.in
+index f0e2b33..285c8cc 100644
+--- a/bin/tests/system/conf.sh.in
++++ b/bin/tests/system/conf.sh.in
+@@ -76,6 +76,9 @@ export KRB5_KTNAME=dns.keytab
+ # tests grepping ans.run may rely on debug-level lines.
+ export ANS_LOG_LEVEL="${ANS_LOG_LEVEL:-debug}"
+ 
++# make it possible to override engine usage
++: ${ENGINE_ARG:=-E pkcs11}
++
+ #
+ # Programs detected by configure
+ # Variables will be empty if no program was found by configure
+diff --git a/bin/tests/system/keyfromlabel/tests_keyfromlabel.py b/bin/tests/system/keyfromlabel/tests_keyfromlabel.py
+index 1953703..a2f4572 100644
+--- a/bin/tests/system/keyfromlabel/tests_keyfromlabel.py
++++ b/bin/tests/system/keyfromlabel/tests_keyfromlabel.py
+@@ -21,6 +21,7 @@ import isctest.mark
+ pytestmark = [
+     isctest.mark.supported_openssl_version,
+     isctest.mark.softhsm2_environment,
++    isctest.mark.with_pkcs11_provider,
+     pytest.mark.extra_artifacts(
+         [
+             "*.example.db",
+@@ -132,8 +133,7 @@ def test_keyfromlabel(alg_name, alg_type, alg_bits):
+ 
+         keyfrlab_command = [
+             os.environ["KEYFRLAB"],
+-            "-E",
+-            "pkcs11",
++            *os.environ.get("ENGINE_ARG", "").split(),
+             "-a",
+             alg_name,
+             "-y",
+@@ -181,8 +181,7 @@ def test_keyfromlabel(alg_name, alg_type, alg_bits):
+ 
+     signer_command = [
+         os.environ["SIGNER"],
+-        "-E",
+-        "pkcs11",
++        *os.environ.get("ENGINE_ARG", "").split(),
+         "-S",
+         "-a",
+         "-g",
+-- 
+2.56.0
+

diff --git a/bind.spec b/bind.spec
index 81eb387..fd8e05c 100644
--- a/bind.spec
+++ b/bind.spec
@@ -174,6 +174,8 @@ Patch35: 0001-Use-variable-PROGRAM_SUFFIX-in-install-target.patch
 Patch36: bind-9.20-tsig-keygen-suffix.patch
 # Downstream only, required on very long build paths.
 Patch37: bind-9.18-d-unittest-dnstap-relative.patch
+# Downstream only, do not use -E pkcs11 in keyfromlabel
+Patch38: bind-9.18-d-systest-keyfromlabel-noengine.patch
 
 
 %{?systemd_ordering}

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-16 14:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-16 14:52 [rpms/bind] f45: Try to work even without pkcs11 engine used 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox