trunks: add tpm_version command to trunks_client
Add tpm_version command to trunks_client to query various versions
and IDs from TPM. Needed to replace tpm_version in TPM2.0 environment.
Also, add 'tpm_version' script that calls trunks_client to minimize
changes in the scripts that rely in tpm_version.
BUG=chrome-os-partner:57942
TEST=run 'trunks_client --tpm_version'
Change-Id: I08aaca5e32bd9d8cb02c09864bc05c3d39538e8f
Reviewed-on: https://chromium-review.googlesource.com/393253
Commit-Ready: Andrey Pronin <apronin@chromium.org>
Tested-by: Andrey Pronin <apronin@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
2 files changed