]> git.proxmox.com Git - mirror_edk2.git/commit - SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c
SecurityPkg/TPM2: Extract GetSupportedAndActivePcrs to Tpm2CommandLib
authorJiewen Yao <jiewen.yao@intel.com>
Wed, 14 Sep 2016 08:28:12 +0000 (16:28 +0800)
committerStar Zeng <star.zeng@intel.com>
Wed, 21 Sep 2016 10:20:20 +0000 (18:20 +0800)
commit07cdba18cd974d818556d752facfbf35a8d0f012
treef53d4f401040ab6b3da86b049f3e31a7da9aef01
parentf5e34e37e018034bc8ce7a2fb9ecb176d948b143
SecurityPkg/TPM2: Extract GetSupportedAndActivePcrs to Tpm2CommandLib

This patch extracts function Tpm2GetCapabilitySupportedAndActivePcrs()
from drivers and also update Tcg2ExecutePhysicalPresence() to call
Tpm2GetCapabilitySupportedAndActivePcrs() instead of
Tcg2Protocol->GetCapability to query the TPM to determine which
hashing algorithms are supported.

Cc: Chao B Zhang <chao.b.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
SecurityPkg/Include/Library/Tpm2CommandLib.h
SecurityPkg/Library/DxeTcg2PhysicalPresenceLib/DxeTcg2PhysicalPresenceLib.c
SecurityPkg/Library/Tpm2CommandLib/Tpm2Capability.c
SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c