]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkPkg/Include/Ppi/Security.h
Remove IntelFrameworkModulePkg
[mirror_edk2.git] / IntelFrameworkPkg / Include / Ppi / Security.h
CommitLineData
3e5a3960 1/** @file\r
f22f941e 2 This file declares the Security Architectural PPI.\r
1c2f052d 3\r
f22f941e 4 This PPI is installed by a platform PEIM that abstracts the security policy to the PEI\r
ac644614 5 Foundation, namely the case of a PEIM's authentication state being returned during the PEI section\r
4a71b21a 6 extraction process.\r
1c2f052d
LG
7\r
8Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
22a69a5e 9SPDX-License-Identifier: BSD-2-Clause-Patent\r
3e5a3960 10\r
3e5a3960 11 @par Revision Reference:\r
12 This PPI is defined in PEI CIS.\r
13 Version 0.91.\r
14\r
15**/\r
16\r
17#ifndef __SECURITY_PPI_H__\r
18#define __SECURITY_PPI_H__\r
19\r
20#define EFI_PEI_SECURITY_PPI_GUID \\r
21 { \\r
22 0x1388066e, 0x3a57, 0x4efa, {0x98, 0xf3, 0xc1, 0x2f, 0x3a, 0x95, 0x8a, 0x29 } \\r
23 }\r
24\r
25typedef struct _EFI_PEI_SECURITY_PPI EFI_PEI_SECURITY_PPI;\r
26\r
27/**\r
b80fbe85 28 Allows the platform builder to implement a security policy in response\r
3e5a3960 29 to varying file authentication states.\r
30\r
f22f941e 31 @param PeiServices The pointer to the PEI Services Table.\r
1c2f052d 32 @param This Interface pointer that implements the particular\r
f22f941e 33 EFI_PEI_SECURITY_PPI instance.\r
1c2f052d 34 @param AuthenticationStatus Status returned by the verification service as\r
f22f941e 35 part of section extraction.\r
36 @param FfsFileHeader The pointer to the file under review.\r
1c2f052d 37 @param DeferExecution The pointer to a variable that alerts the PEI\r
f22f941e 38 Foundation to defer execution of a PEIM.\r
badb54ab 39\r
40 @retval EFI_SUCCESS The service performed its action successfully.\r
f22f941e 41 @retval EFI_SECURITY_VIOLATION The object cannot be trusted.\r
3e5a3960 42**/\r
43typedef\r
44EFI_STATUS\r
fa712ebc 45(EFIAPI *FRAMEWORK_EFI_PEI_SECURITY_AUTHENTICATION_STATE)(\r
3e5a3960 46 IN EFI_PEI_SERVICES **PeiServices,\r
47 IN EFI_PEI_SECURITY_PPI *This,\r
48 IN UINT32 AuthenticationStatus,\r
49 IN EFI_FFS_FILE_HEADER *FfsFileHeader,\r
badb54ab 50 IN OUT BOOLEAN *DeferExecution\r
3e5a3960 51 );\r
52\r
badb54ab 53//\r
54// PPI interface structure of Security PPI\r
55//\r
3e5a3960 56struct _EFI_PEI_SECURITY_PPI {\r
fa712ebc 57 FRAMEWORK_EFI_PEI_SECURITY_AUTHENTICATION_STATE AuthenticationState;\r
3e5a3960 58};\r
59\r
60extern EFI_GUID gEfiPeiSecurityPpiGuid;\r
61\r
62#endif\r