TianoCore EDK2 master
Loading...
Searching...
No Matches
DxeImageAuthenticationStatusLib.c File Reference

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI DxeImageAuthenticationStatusHandler (IN UINT32 AuthenticationStatus, IN CONST EFI_DEVICE_PATH_PROTOCOL *File OPTIONAL, IN VOID *FileBuffer, IN UINTN FileSize, IN BOOLEAN BootPolicy)
 
EFI_STATUS EFIAPI DxeImageAuthenticationStatusLibConstructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Detailed Description

Implement image authentication status check in UEFI2.3.1.

Copyright (c) 2012 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file DxeImageAuthenticationStatusLib.c.

Function Documentation

◆ DxeImageAuthenticationStatusHandler()

EFI_STATUS EFIAPI DxeImageAuthenticationStatusHandler ( IN UINT32  AuthenticationStatus,
IN CONST EFI_DEVICE_PATH_PROTOCOL *File  OPTIONAL,
IN VOID *  FileBuffer,
IN UINTN  FileSize,
IN BOOLEAN  BootPolicy 
)

Check image authentication status returned from Section Extraction Protocol

Parameters
[in]AuthenticationStatusThis is the authentication status returned from the Section Extraction Protocol when reading the input file.
[in]FileThis is a pointer to the device path of the file that is being dispatched. This will optionally be used for logging.
[in]FileBufferFile buffer matches the input file device path.
[in]FileSizeSize of File buffer matches the input file device path.
[in]BootPolicyA boot policy that was used to call LoadImage() UEFI service.
Return values
EFI_SUCCESSThe input file specified by File did authenticate, and the platform policy dictates that the DXE Core may use File.
EFI_ACCESS_DENIEDThe file specified by File and FileBuffer did not authenticate, and the platform policy dictates that the DXE Foundation many not use File.

Definition at line 32 of file DxeImageAuthenticationStatusLib.c.

◆ DxeImageAuthenticationStatusLibConstructor()

EFI_STATUS EFIAPI DxeImageAuthenticationStatusLibConstructor ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Register image authentication status check handler.

Parameters
ImageHandleImageHandle of the loaded driver.
SystemTablePointer to the EFI System Table.
Return values
EFI_SUCCESSThe handlers were registered successfully.

Definition at line 59 of file DxeImageAuthenticationStatusLib.c.