]> git.ipfire.org Git - thirdparty/systemd.git/commit
measure: strip tpm 1.x remnants and make GetActivePcrBanks() work (#39089)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 24 Sep 2025 09:14:09 +0000 (18:14 +0900)
committerGitHub <noreply@github.com>
Wed, 24 Sep 2025 09:14:09 +0000 (18:14 +0900)
commita359d92547b5b15ec3793e050f152ac2d74016e7
tree4c3b2e35f6aea4a18cb6e1240474da28cc702916
parent01598d644f9b84f2c09467f441c8e49ac49833af
parentb388fa20c735add38080a746fd831273820c93ac
measure: strip tpm 1.x remnants and make GetActivePcrBanks() work (#39089)

Let's never bother with old TPM 1.x structures, they are not mentioned
in the TCG for TPM2 spec at all. However, the spec does say we should
check the Size field of the relevant structs, before accessing them,
hence do that.

Use that to determine the version of the protocol, before accessing
GetActiveBanks().

Alternative to: #39034
Fixes: #38932
Follow-up to: 6eab4cd44c3c43698dcfc2c3bc8cd31ed610a812