]> git.proxmox.com Git - swtpm.git/commitdiff
tests: Do not activate SHA-1 PCR bank in test case
authorStefan Berger <stefanb@linux.ibm.com>
Mon, 13 Jun 2022 18:05:25 +0000 (14:05 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Tue, 14 Jun 2022 01:46:56 +0000 (21:46 -0400)
For being able to run tests with runtime-deactivated SHA-1 (in libtpms),
do not test with SHA-1 bank anymore.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
tests/test_tpm2_swtpm_setup_create_cert

index 26f9f3dafb07a9a3d8b74614fed1c1d6461da951..1582b54b8cc72440423c29d84c7aa8469e0a9c4b 100755 (executable)
@@ -133,7 +133,7 @@ function swtpm_setup_reconfigure() {
        local PERMALL_FILE="${workdir}/tpm2-00.permall"
        local permall_size=$(get_filesize "${PERMALL_FILE}")
 
-       for pcrbanks in "sha1" "sha1,sha256" "sha1,sha256,sha384,sha512"; do
+       for pcrbanks in "sha256" "sha256,sha384" "sha256,sha384,sha512"; do
                # hash must change between before and after
                permall_hash=$(get_sha1_file "${PERMALL_FILE}")