Reviewed-by: Liming Gao <[email protected]>

-----Original Message-----
From: Zhang, Chao B 
Sent: Tuesday, November 03, 2015 11:03 AM
To: [email protected]
Cc: [email protected]; Gao, Liming
Subject: [PATCH] SecurityPkg: Remove temp return solution in PeiRsa2048Sha256 
Section Lib

PeiCore supports EFI_PEI_SECURITY_PPI to handle section extraction failure. The 
wrong returning status is no longer needed.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Zhang, Chao B" <[email protected]>
---
 .../PeiRsa2048Sha256GuidedSectionExtractLib.c                       | 6 ------
 1 file changed, 6 deletions(-)

diff --git 
a/SecurityPkg/Library/PeiRsa2048Sha256GuidedSectionExtractLib/PeiRsa2048Sha256GuidedSectionExtractLib.c
 
b/SecurityPkg/Library/PeiRsa2048Sha256GuidedSectionExtractLib/PeiRsa2048Sha256GuidedSectionExtractLib.c
index e448164..4733703 100644
--- 
a/SecurityPkg/Library/PeiRsa2048Sha256GuidedSectionExtractLib/PeiRsa2048Sha256GuidedSectionExtractLib.c
+++ 
b/SecurityPkg/Library/PeiRsa2048Sha256GuidedSectionExtractLib/PeiRsa2048Sha256GuidedSectionExtractLib.c
@@ -357,12 +357,6 @@ Done:
     FreePool (HashContext);
   }
 
-  //
-  // Temp solution until PeiCore checks AUTH Status.
-  //
-  if ((*AuthenticationStatus & (EFI_AUTH_STATUS_TEST_FAILED | 
EFI_AUTH_STATUS_NOT_TESTED)) != 0) {
-    Status = EFI_ACCESS_DENIED;
-  }
   DEBUG ((DEBUG_VERBOSE, "PeiRsa2048Sha256: Status = %r  AuthenticationStatus 
= %08x\n", Status, *AuthenticationStatus));
 
   return Status;
-- 
1.9.5.msysgit.1

_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to