11#ifndef __SECURITY_MANAGEMENT_LIB_H__
12#define __SECURITY_MANAGEMENT_LIB_H__
17#define EFI_AUTH_OPERATION_NONE 0x00
18#define EFI_AUTH_OPERATION_VERIFY_IMAGE 0x01
19#define EFI_AUTH_OPERATION_DEFER_IMAGE_LOAD 0x02
20#define EFI_AUTH_OPERATION_MEASURE_IMAGE 0x04
21#define EFI_AUTH_OPERATION_CONNECT_POLICY 0x08
25#define EFI_AUTH_OPERATION_AUTHENTICATION_STATE 0x10
30#define EFI_AUTH_OPERATION_IMAGE_REQUIRED 0x80000000
83 IN OUT UINT32 AuthenticationStatus,
107 IN UINT32 AuthenticationOperation
144 IN UINT32 AuthenticationStatus,
188 IN UINT32 AuthenticationStatus,
192 IN BOOLEAN BootPolicy
214 IN UINT32 AuthenticationOperation
262 IN UINT32 AuthenticationOperation,
263 IN UINT32 AuthenticationStatus,
267 IN BOOLEAN BootPolicy
EFI_STATUS EFIAPI ExecuteSecurity2Handlers(IN UINT32 AuthenticationOperation, IN UINT32 AuthenticationStatus, IN CONST EFI_DEVICE_PATH_PROTOCOL *File OPTIONAL, IN VOID *FileBuffer, IN UINTN FileSize, IN BOOLEAN BootPolicy)
EFI_STATUS EFIAPI RegisterSecurityHandler(IN SECURITY_FILE_AUTHENTICATION_STATE_HANDLER SecurityHandler, IN UINT32 AuthenticationOperation)
EFI_STATUS(EFIAPI * SECURITY2_FILE_AUTHENTICATION_HANDLER)(IN UINT32 AuthenticationStatus, IN CONST EFI_DEVICE_PATH_PROTOCOL *File, IN VOID *FileBuffer, IN UINTN FileSize, IN BOOLEAN BootPolicy)
EFI_STATUS(EFIAPI * SECURITY_FILE_AUTHENTICATION_STATE_HANDLER)(IN OUT UINT32 AuthenticationStatus, IN CONST EFI_DEVICE_PATH_PROTOCOL *File, IN VOID *FileBuffer, IN UINTN FileSize)
EFI_STATUS EFIAPI RegisterSecurity2Handler(IN SECURITY2_FILE_AUTHENTICATION_HANDLER Security2Handler, IN UINT32 AuthenticationOperation)
EFI_STATUS EFIAPI ExecuteSecurityHandlers(IN UINT32 AuthenticationStatus, IN CONST EFI_DEVICE_PATH_PROTOCOL *FilePath)