]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: Allow to use SHA1 with OpenSSL for selftest
authorAndreas Schneider <asn@samba.org>
Wed, 27 Nov 2024 10:17:27 +0000 (11:17 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 27 Nov 2024 15:33:35 +0000 (15:33 +0000)
This is needed for samba.tests.krb5.pkinit_tests with sha1.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
selftest/selftest.pl

index a0c4ec80f59939753b11ff95de8583926f31913a..2455b75a36ee9e0932f4744cba24bc5c4cee1480 100755 (executable)
@@ -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