From be5531aaec7b2332ac288b64c86ec8f8cb6c85b6 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 27 Nov 2024 11:17:27 +0100 Subject: [PATCH] selftest: Allow to use SHA1 with OpenSSL for selftest This is needed for samba.tests.krb5.pkinit_tests with sha1. Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- selftest/selftest.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/selftest/selftest.pl b/selftest/selftest.pl index a0c4ec80f59..2455b75a36e 100755 --- a/selftest/selftest.pl +++ b/selftest/selftest.pl @@ -455,6 +455,10 @@ if ($opt_mitkrb5 == 1) { $ENV{KRB5RCACHETYPE} = "none"; } +# Enable support for SHA1 in OpenSSL +# This is required e.g. for pkinit sha1 tests +$ENV{OPENSSL_ENABLE_SHA1_SIGNATURES} = 1; + # After this many seconds, the server will self-terminate. All tests # must terminate in this time, and testenv will only stay alive this # long -- 2.47.3