From: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Date: Mon, 6 Oct 2025 21:27:06 +0200
Subject: [PATCH] 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>
---
 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 50c74459359a0..60bd042e0b841 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"
-- 
2.51.0

