Cc: Jiewen Yao <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
VOID *AuthenticatedImage;\r
UINTN AuthenticatedImageSize;\r
\r
VOID *AuthenticatedImage;\r
UINTN AuthenticatedImageSize;\r
\r
+ AuthenticatedImage = NULL;\r
+ AuthenticatedImageSize = 0;\r
+\r
Status = CapsuleAuthenticateSystemFirmware(Image, Length, TRUE, &LastAttemptVersion, &LastAttemptStatus, &AuthenticatedImage, &AuthenticatedImageSize);\r
if (EFI_ERROR(Status)) {\r
DEBUG((DEBUG_INFO, "CapsuleAuthenticateSystemFirmware - %r\n", Status));\r
Status = CapsuleAuthenticateSystemFirmware(Image, Length, TRUE, &LastAttemptVersion, &LastAttemptStatus, &AuthenticatedImage, &AuthenticatedImageSize);\r
if (EFI_ERROR(Status)) {\r
DEBUG((DEBUG_INFO, "CapsuleAuthenticateSystemFirmware - %r\n", Status));\r
EFI_FIRMWARE_VOLUME_HEADER *FvImage;\r
BOOLEAN Result;\r
\r
EFI_FIRMWARE_VOLUME_HEADER *FvImage;\r
BOOLEAN Result;\r
\r
+ AuthenticatedImage = NULL;\r
+ AuthenticatedImageSize = 0;\r
+\r
DEBUG((DEBUG_INFO, "DispatchSystemFmpImages\n"));\r
\r
//\r
DEBUG((DEBUG_INFO, "DispatchSystemFmpImages\n"));\r
\r
//\r
VOID *AuthenticatedImage;\r
UINTN AuthenticatedImageSize;\r
\r
VOID *AuthenticatedImage;\r
UINTN AuthenticatedImageSize;\r
\r
+ AuthenticatedImage = NULL;\r
+ AuthenticatedImageSize = 0;\r
+\r
DEBUG((DEBUG_INFO, "SystemFirmwareAuthenticatedUpdate...\n"));\r
\r
Status = CapsuleAuthenticateSystemFirmware(Image, ImageSize, FALSE, LastAttemptVersion, LastAttemptStatus, &AuthenticatedImage, &AuthenticatedImageSize);\r
DEBUG((DEBUG_INFO, "SystemFirmwareAuthenticatedUpdate...\n"));\r
\r
Status = CapsuleAuthenticateSystemFirmware(Image, ImageSize, FALSE, LastAttemptVersion, LastAttemptStatus, &AuthenticatedImage, &AuthenticatedImageSize);\r