2007-06-27 07:49:17 +02:00
|
|
|
/** @file
|
|
|
|
This file declares Security Architectural PPI.
|
2008-04-08 08:29:25 +02:00
|
|
|
|
|
|
|
This PPI is installed by some platform PEIM that abstracts the security policy to the PEI
|
2008-05-27 05:24:01 +02:00
|
|
|
Foundation, namely the case of a PEIM's authentication state being returned during the PEI section
|
2008-04-08 08:29:25 +02:00
|
|
|
extraction process.
|
|
|
|
|
2007-06-28 14:23:11 +02:00
|
|
|
Copyright (c) 2006, Intel Corporation
|
|
|
|
All rights reserved. This program and the accompanying materials
|
|
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
|
|
http://opensource.org/licenses/bsd-license.php
|
2007-06-27 07:49:17 +02:00
|
|
|
|
2007-06-28 14:23:11 +02:00
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
2007-06-27 07:49:17 +02:00
|
|
|
|
|
|
|
@par Revision Reference:
|
|
|
|
This PPI is defined in PEI CIS.
|
|
|
|
Version 0.91.
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef __SECURITY_PPI_H__
|
|
|
|
#define __SECURITY_PPI_H__
|
|
|
|
|
|
|
|
#define EFI_PEI_SECURITY_PPI_GUID \
|
|
|
|
{ \
|
|
|
|
0x1388066e, 0x3a57, 0x4efa, {0x98, 0xf3, 0xc1, 0x2f, 0x3a, 0x95, 0x8a, 0x29 } \
|
|
|
|
}
|
|
|
|
|
|
|
|
typedef struct _EFI_PEI_SECURITY_PPI EFI_PEI_SECURITY_PPI;
|
|
|
|
|
|
|
|
/**
|
2007-06-28 14:23:11 +02:00
|
|
|
Allows the platform builder to implement a security policy in response
|
2007-06-27 07:49:17 +02:00
|
|
|
to varying file authentication states.
|
|
|
|
|
2009-07-02 07:58:27 +02:00
|
|
|
@param PeiServices Pointer to the PEI Services Table.
|
|
|
|
@param This Interface pointer that implements the particular EFI_PEI_SECURITY_PPI instance.
|
|
|
|
@param AuthenticationStatus Status returned by the verification service as part of section extraction.
|
|
|
|
@param FfsFileHeader Pointer to the file under review.
|
|
|
|
@param DeferExecution Pointer to a variable that alerts the PEI Foundation to defer execution of a PEIM.
|
|
|
|
|
|
|
|
@retval EFI_SUCCESS The service performed its action successfully.
|
|
|
|
@retval EFI_SECURITY_VIOLATION The object cannot be trusted
|
2007-06-27 07:49:17 +02:00
|
|
|
**/
|
|
|
|
typedef
|
|
|
|
EFI_STATUS
|
2009-07-13 01:50:04 +02:00
|
|
|
(EFIAPI *FRAMEWORK_EFI_PEI_SECURITY_AUTHENTICATION_STATE)(
|
2007-06-27 07:49:17 +02:00
|
|
|
IN EFI_PEI_SERVICES **PeiServices,
|
|
|
|
IN EFI_PEI_SECURITY_PPI *This,
|
|
|
|
IN UINT32 AuthenticationStatus,
|
|
|
|
IN EFI_FFS_FILE_HEADER *FfsFileHeader,
|
2009-07-02 07:58:27 +02:00
|
|
|
IN OUT BOOLEAN *DeferExecution
|
2007-06-27 07:49:17 +02:00
|
|
|
);
|
|
|
|
|
2009-07-02 07:58:27 +02:00
|
|
|
//
|
|
|
|
// PPI interface structure of Security PPI
|
|
|
|
//
|
2007-06-27 07:49:17 +02:00
|
|
|
struct _EFI_PEI_SECURITY_PPI {
|
2009-07-13 01:50:04 +02:00
|
|
|
FRAMEWORK_EFI_PEI_SECURITY_AUTHENTICATION_STATE AuthenticationState;
|
2007-06-27 07:49:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
extern EFI_GUID gEfiPeiSecurityPpiGuid;
|
|
|
|
|
|
|
|
#endif
|