From: Andreas Schneider Date: Wed, 27 Nov 2024 10:17:27 +0000 (+0100) Subject: selftest: Allow to use SHA1 with OpenSSL for selftest X-Git-Tag: tdb-1.4.13~471 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=be5531aaec7b2332ac288b64c86ec8f8cb6c85b6;p=thirdparty%2Fsamba.git 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 --- 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