
11 Nov
2020
11 Nov
'20
3:32 p.m.
On Thu, 5 Nov 2020 at 14:58, Ilias Apalodimas ilias.apalodimas@linaro.org wrote:
For implementing the EFI_TCG2_PROTOCOL we need the count field returned by the TPM when reading capabilities via tpm2_get_capability().
Adjust the implementation of the 'tpm2 get_capability' command accordingly.
Suggested-by: Heinrich Schuchardt xypron.glpk@gmx.de Signed-off-by: Ilias Apalodimas ilias.apalodimas@linaro.org
Changes since v1:
- Unconditionally get the extra 4 bytes on the response and account for them in do_tpm_get_capability()
cmd/tpm-v2.c | 4 ++-- lib/tpm-v2.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
Reviewed-by: Simon Glass sjg@chromium.org