diff options
| author | Lans Zhang <jia.zhang@windriver.com> | 2016-12-16 14:48:04 +0800 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2017-02-06 11:18:07 -0500 |
| commit | 94c955bbbd788fddf3f707c49feebd8828afe123 (patch) | |
| tree | c04f60d6a90f21bfcaa9782170866ee8c068954d /tpm.c | |
| parent | 07bda58596608f05bfa035a1cc5710f5ac8ea3d9 (diff) | |
| download | efi-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 *)∩︀ - if (caps_1_0->TPMPresentFlag) + caps_1_0 = (TREE_BOOT_SERVICE_CAPABILITY *)∩︀ + if (caps_1_0->TrEEPresentFlag) return TRUE; } else { if (caps.TPMPresentFlag) |
