]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
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)
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


Trivial merge