From 5677f2caf542c835f11c8bb6a8c1b20a73127b51 Mon Sep 17 00:00:00 2001 From: Stefan Berger Date: Wed, 21 Aug 2024 12:00:41 -0400 Subject: [PATCH] tests: Set OPENSSL_ENABLE_SHA1_SIGNATURES=1 for IBMTSS2 test The IBMTSS2 tests suite creates signatures over SHA1 that may now fail on RHEL 9.x and CentOS 9. To have these tests succeed set OPENSSL_ENABLE_SHA1_SIGNATURES=1 so the tests do not need to be modified and also check that the TPM 2 can handle SHA1 signatures as before. 'swtpm socket --tpm2' should set this environment variable automatically if needed. Signed-off-by: Stefan Berger --- tests/test_tpm2_ibmtss2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_tpm2_ibmtss2 b/tests/test_tpm2_ibmtss2 index b1c61250c..41118279c 100755 --- a/tests/test_tpm2_ibmtss2 +++ b/tests/test_tpm2_ibmtss2 @@ -104,7 +104,7 @@ if ! ./startup; then exit 1 fi -./reg.sh -a 2>&1 | tee "${REGLOG}" +OPENSSL_ENABLE_SHA1_SIGNATURES=1 ./reg.sh -a 2>&1 | tee "${REGLOG}" ret=0