]>
Commit | Line | Data |
---|---|---|
878ddf1f | 1 | /** @file\r |
2 | This file declares Security Architectural PPI.\r | |
3 | \r | |
4 | Copyright (c) 2006, Intel Corporation \r | |
5 | All rights reserved. This program and the accompanying materials \r | |
6 | are licensed and made available under the terms and conditions of the BSD License \r | |
7 | which accompanies this distribution. The full text of the license may be found at \r | |
8 | http://opensource.org/licenses/bsd-license.php \r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
12 | \r | |
13 | Module Name: Security.h\r | |
14 | \r | |
15 | @par Revision Reference:\r | |
16 | This PPI is defined in PEI CIS.\r | |
17 | Version 0.91.\r | |
18 | \r | |
19 | **/\r | |
20 | \r | |
21 | #ifndef __SECURITY_PPI_H__\r | |
22 | #define __SECURITY_PPI_H__\r | |
23 | \r | |
24 | #define EFI_PEI_SECURITY_PPI_GUID \\r | |
25 | { \\r | |
26 | 0x1388066e, 0x3a57, 0x4efa, {0x98, 0xf3, 0xc1, 0x2f, 0x3a, 0x95, 0x8a, 0x29 } \\r | |
27 | }\r | |
28 | \r | |
29 | typedef struct _EFI_PEI_SECURITY_PPI EFI_PEI_SECURITY_PPI;\r | |
30 | \r | |
31 | /**\r | |
32 | Allows the platform builder to implement a security policy in response \r | |
33 | to varying file authentication states.\r | |
34 | \r | |
35 | @param PeiServices Pointer to the PEI Services Table.\r | |
36 | \r | |
37 | @param This Interface pointer that implements the particular EFI_PEI_SECURITY_PPI instance.\r | |
38 | \r | |
39 | @param AuthenticationStatus Status returned by the verification service as part of section extraction.\r | |
40 | \r | |
41 | @param FfsFileHeader Pointer to the file under review. \r | |
42 | \r | |
43 | @param DeferExecution Pointer to a variable that alerts the PEI Foundation to defer execution of a PEIM.\r | |
44 | \r | |
45 | @retval EFI_SUCCESS The service performed its action successfully.\r | |
46 | \r | |
47 | @retval EFI_SECURITY_VIOLATION The object cannot be trusted\r | |
48 | \r | |
49 | **/\r | |
50 | typedef\r | |
51 | EFI_STATUS\r | |
52 | (EFIAPI *EFI_PEI_SECURITY_AUTHENTICATION_STATE) (\r | |
53 | IN EFI_PEI_SERVICES **PeiServices,\r | |
54 | IN EFI_PEI_SECURITY_PPI *This,\r | |
55 | IN UINT32 AuthenticationStatus,\r | |
56 | IN EFI_FFS_FILE_HEADER *FfsFileHeader,\r | |
57 | IN OUT BOOLEAN *StartCrisisRecovery\r | |
58 | );\r | |
59 | \r | |
60 | /**\r | |
61 | @par Ppi Description:\r | |
62 | This PPI is installed by some platform PEIM that abstracts the security \r | |
63 |