aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/tests-Use-openssl-rehash-instead-of-c_rehash.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/tests-Use-openssl-rehash-instead-of-c_rehash.patch')
-rw-r--r--debian/patches/tests-Use-openssl-rehash-instead-of-c_rehash.patch28
1 files changed, 28 insertions, 0 deletions
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"