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.

TEST=run 'trunks_client --tpm_version'

Change-Id: I08aaca5e32bd9d8cb02c09864bc05c3d39538e8f
Commit-Ready: Andrey Pronin <>
Tested-by: Andrey Pronin <>
Reviewed-by: Hung-Te Lin <>
Reviewed-by: Darren Krahn <>
2 files changed