aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/patches/series1
-rw-r--r--debian/patches/tests-Use-openssl-rehash-instead-of-c_rehash.patch28
2 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches/series b/debian/patches/series
index ecb036a..dcaacf5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
Mention-the-Debian-BTS-in-the-manpages.patch
Skip-randomized-tests.patch
Fix-struct-flock-and-timeval-packing-on-armhf.patch
+tests-Use-openssl-rehash-instead-of-c_rehash.patch
diff --git a/debian/patches/tests-Use-openssl-rehash-instead-of-c_rehash.patch b/debian/patches/tests-Use-openssl-rehash-instead-of-c_rehash.patch
new file mode 100644
index 0000000..5a0edff
--- /dev/null
+++ b/debian/patches/tests-Use-openssl-rehash-instead-of-c_rehash.patch
@@ -0,0 +1,28 @@
+From: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
+Date: Mon, 6 Oct 2025 21:27:06 +0200
+Subject: tests: Use "openssl rehash" instead of c_rehash
+
+The built-in version of c_rehash is "openssl rehash" and is available since the
+3.0 series. The c_rehash is a perl script which is considered legacy.
+
+Switch to "openssl rehash"
+
+Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
+Bug-Debian: https://bugs.debian.org/1117508
+---
+ tests/tls-verify-peer/t | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/tls-verify-peer/t b/tests/tls-verify-peer/t
+index 50c7445..60bd042 100644
+--- a/tests/tls-verify-peer/t
++++ b/tests/tls-verify-peer/t
+@@ -116,7 +116,7 @@ if [ -d "/etc/ssl/certs" ]; then
+ unverified_peer
+ fi
+
+-c_rehash "$capath"
++openssl rehash "$capath"
+
+ # default host (localhost) is the CN (and also subjectAltName)
+ with_remote_config <<<"SSL_CApath = $capath"