]> git.proxmox.com Git - swtpm.git/commit
swtpm_setup: Add support for checking for TPM 1.2 and TPM 2 support
authorStefan Berger <stefanb@linux.ibm.com>
Mon, 9 Aug 2021 21:09:02 +0000 (17:09 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Tue, 10 Aug 2021 13:38:48 +0000 (09:38 -0400)
commit3eac24775249367394c949cc8a452b4101a96371
treef7d8a64a8a36f29bc50811a9b91fe788e3ff6d7a
parentafef70506186f54515786f9a9d5fe1965f976200
swtpm_setup: Add support for checking for TPM 1.2 and TPM 2 support

Implement get_supported_tpm_versions to get swtpm's support for TPM 1.2
and TPM 2 and use it error out in case user choose a TPM version that
is not supported. Also display the supported TPM versions in the
capabilites JSON.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
man/man8/swtpm_setup.pod
src/swtpm_setup/swtpm_setup.c
tests/_test_print_capabilities
tests/_test_tpm2_print_capabilities