]> git.proxmox.com Git - swtpm.git/commit - src/swtpm_setup/swtpm_setup.c
swtpm_setup: Use --print-states in check_state_overwrite()
authorEiichi Tsukata <eiichi.tsukata@nutanix.com>
Fri, 27 Aug 2021 00:24:41 +0000 (09:24 +0900)
committerStefan Berger <stefanb@us.ibm.com>
Tue, 7 Sep 2021 13:22:51 +0000 (09:22 -0400)
commite0d2c0ed577c595fc89407f361d0cc5a0438b240
treeaa5197178bd513bc93660f1db7d66c7cdd0256c3
parent5bc59a74f3c838a142268598127bef19989d0930
swtpm_setup: Use --print-states in check_state_overwrite()

Instead of directly accessing TPM state store file, use --print-states
to check if there is existing state file or not. This can reduce TPM
state directory dependencies of swtpm_setup.

Signed-off-by: Eiichi Tsukata <eiichi.tsukata@nutanix.com>
src/swtpm_setup/swtpm_setup.c