]> git.dujemihanovic.xyz Git - u-boot.git/commit
tpm: Change response length of tpm2_get_capability()
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Thu, 5 Nov 2020 21:58:43 +0000 (23:58 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 9 Nov 2020 16:28:18 +0000 (17:28 +0100)
commita322f54f50cfb2e8e7a68968c060b2fd3dbd934d
tree5a1da7557ca17a3a7c253d1a6f8fd72bb2b6d44e
parentb1aa6fcf274cb655ffb56eadcb9518fbb57e47b5
tpm: Change response length of tpm2_get_capability()

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>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
cmd/tpm-v2.c
lib/tpm-v2.c