From: Yu Watanabe Date: Wed, 24 Sep 2025 09:14:09 +0000 (+0900) Subject: measure: strip tpm 1.x remnants and make GetActivePcrBanks() work (#39089) X-Git-Tag: v259-rc1~458 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a359d92547b5b15ec3793e050f152ac2d74016e7;p=thirdparty%2Fsystemd.git 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 --- a359d92547b5b15ec3793e050f152ac2d74016e7