Skip to content

Commit

Permalink
SecurityPkg: Add PcdEnableSpdmDeviceAuhenticaion and check
Browse files Browse the repository at this point in the history
Signed-off-by: Wenxing Hou <wenxing.hou@intel.com>
  • Loading branch information
Wenxing-hou authored and jyao1 committed Feb 5, 2024
1 parent cbae1be commit 6b4249f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SecurityPkg/DeviceSecurity/SpdmSecurityLib/SpdmSecurityLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ SpdmDeviceAuthenticationAndMeasurement (
BOOLEAN IsValidCertChain;
BOOLEAN RootCertMatch;

if (PcdGet32 (PcdTcgPfpMeasurementRevision) < TCG_EfiSpecIDEventStruct_SPEC_ERRATA_TPM2_REV_106) {
if ((PcdGet32 (PcdTcgPfpMeasurementRevision) < TCG_EfiSpecIDEventStruct_SPEC_ERRATA_TPM2_REV_106) ||
(PcdGet8(PcdEnableSpdmDeviceAuthenticaion) == 0)) {
return EFI_UNSUPPORTED;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,4 @@

[Pcd]
gEfiMdeModulePkgTokenSpaceGuid.PcdTcgPfpMeasurementRevision ## CONSUMES
gEfiMdeModulePkgTokenSpaceGuid.PcdEnableSpdmDeviceAuthenticaion ## CONSUMES

0 comments on commit 6b4249f

Please sign in to comment.