summaryrefslogtreecommitdiff
path: root/tpm.c
diff options
context:
space:
mode:
authorLans Zhang <jia.zhang@windriver.com>2016-12-16 14:48:04 +0800
committerPeter Jones <pjones@redhat.com>2017-02-06 11:18:07 -0500
commit94c955bbbd788fddf3f707c49feebd8828afe123 (patch)
treec04f60d6a90f21bfcaa9782170866ee8c068954d /tpm.c
parent07bda58596608f05bfa035a1cc5710f5ac8ea3d9 (diff)
downloadefi-boot-shim-94c955bbbd788fddf3f707c49feebd8828afe123.tar.gz
efi-boot-shim-94c955bbbd788fddf3f707c49feebd8828afe123.zip
shim/tpm: correct the definition of the capability structure version 1.0
EFI TrEE Protocol uses the same protocol GUID as EFI TCG2 protocol, and defines the capability structure version 1.0. Hence, the structure and name are all align the EFI TrEE Protocol. Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
Diffstat (limited to 'tpm.c')
-rw-r--r--tpm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tpm.c b/tpm.c
index 4395821d..88920bbf 100644
--- a/tpm.c
+++ b/tpm.c
@@ -39,7 +39,7 @@ static BOOLEAN tpm2_present(efi_tpm2_protocol_t *tpm)
{
EFI_STATUS status;
EFI_TCG2_BOOT_SERVICE_CAPABILITY caps;
- EFI_TCG2_BOOT_SERVICE_CAPABILITY_1_0 *caps_1_0;
+ TREE_BOOT_SERVICE_CAPABILITY *caps_1_0;
caps.Size = (UINT8)sizeof(caps);
@@ -50,8 +50,8 @@ static BOOLEAN tpm2_present(efi_tpm2_protocol_t *tpm)
if (caps.StructureVersion.Major == 1 &&
caps.StructureVersion.Minor == 0) {
- caps_1_0 = (EFI_TCG2_BOOT_SERVICE_CAPABILITY_1_0 *)&caps;
- if (caps_1_0->TPMPresentFlag)
+ caps_1_0 = (TREE_BOOT_SERVICE_CAPABILITY *)&caps;
+ if (caps_1_0->TrEEPresentFlag)
return TRUE;
} else {
if (caps.TPMPresentFlag)