]> git.proxmox.com Git - libtpms.git/commit
tpm2: The state file exists on return code != TPM_RETRY
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Mon, 17 Sep 2018 13:07:24 +0000 (09:07 -0400)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Mon, 17 Sep 2018 13:07:27 +0000 (09:07 -0400)
commite8e8633089bee2aa61944fba2ff23c756a6295a5
tree18704bd9859d994a34c1458c54f7430e1f2c66b8
parent4111bd1bcf721e6e7b5f11ed9c2b93083677aa25
tpm2: The state file exists on return code != TPM_RETRY

Modify the test for whether a state file exists by return code from the
load function being != TPM_RETRY. All other error codes indicate that some
form of state file exists, independent whether it is readable or not.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
src/tpm_tpm2_interface.c