]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SecurityPkg: Remove temp return solution in PeiRsa2048Sha256 Section Lib
authorZhang Chao <chao.b.zhang@intel.com>
Fri, 6 Nov 2015 01:56:51 +0000 (01:56 +0000)
committerczhang46 <czhang46@Edk2>
Fri, 6 Nov 2015 01:56:51 +0000 (01:56 +0000)
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 <chao.b.zhang@intel.com>
Reviewed-by: Gao Liming <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18732 6f19259b-4bc3-4df7-8a09-765794883524

SecurityPkg/Library/PeiRsa2048Sha256GuidedSectionExtractLib/PeiRsa2048Sha256GuidedSectionExtractLib.c

index e448164a5a33fea6275b8fd1e4e5afe0bd3787bd..473370300a0e3f8d2ab2bc691aed0a48e2b1cc68 100644 (file)
@@ -357,12 +357,6 @@ Done:
     FreePool (HashContext);\r
   }\r
 \r
-  //\r
-  // Temp solution until PeiCore checks AUTH Status.\r
-  //\r
-  if ((*AuthenticationStatus & (EFI_AUTH_STATUS_TEST_FAILED | EFI_AUTH_STATUS_NOT_TESTED)) != 0) {\r
-    Status = EFI_ACCESS_DENIED;\r
-  }\r
   DEBUG ((DEBUG_VERBOSE, "PeiRsa2048Sha256: Status = %r  AuthenticationStatus = %08x\n", Status, *AuthenticationStatus));\r
 \r
   return Status;\r