TianoCore EDK2 master
Loading...
Searching...
No Matches
DxeImageAuthenticationStatusLib.c
Go to the documentation of this file.
1
9#include <PiDxe.h>
11
31EFIAPI
33 IN UINT32 AuthenticationStatus,
34 IN CONST EFI_DEVICE_PATH_PROTOCOL *File OPTIONAL,
35 IN VOID *FileBuffer,
36 IN UINTN FileSize,
37 IN BOOLEAN BootPolicy
38 )
39{
40 if ((AuthenticationStatus & EFI_AUTH_STATUS_IMAGE_SIGNED) != 0) {
41 if ((AuthenticationStatus & (EFI_AUTH_STATUS_TEST_FAILED | EFI_AUTH_STATUS_NOT_TESTED)) != 0) {
42 return EFI_ACCESS_DENIED;
43 }
44 }
45
46 return EFI_SUCCESS;
47}
48
58EFIAPI
60 IN EFI_HANDLE ImageHandle,
61 IN EFI_SYSTEM_TABLE *SystemTable
62 )
63{
66 EFI_AUTH_OPERATION_AUTHENTICATION_STATE
67 );
68}
UINT64 UINTN
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)
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
EFI_STATUS EFIAPI RegisterSecurity2Handler(IN SECURITY2_FILE_AUTHENTICATION_HANDLER Security2Handler, IN UINT32 AuthenticationOperation)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
#define EFI_SUCCESS
Definition: UefiBaseType.h:112