TianoCore EDK2 master
Loading...
Searching...
No Matches
AuthVariableLibNull.c File Reference

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI AuthVariableLibInitialize (IN AUTH_VAR_LIB_CONTEXT_IN *AuthVarLibContextIn, OUT AUTH_VAR_LIB_CONTEXT_OUT *AuthVarLibContextOut)
 
EFI_STATUS EFIAPI AuthVariableLibProcessVariable (IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, IN VOID *Data, IN UINTN DataSize, IN UINT32 Attributes)
 

Detailed Description

Implements NULL authenticated variable services.

Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file AuthVariableLibNull.c.

Function Documentation

◆ AuthVariableLibInitialize()

EFI_STATUS EFIAPI AuthVariableLibInitialize ( IN AUTH_VAR_LIB_CONTEXT_IN AuthVarLibContextIn,
OUT AUTH_VAR_LIB_CONTEXT_OUT AuthVarLibContextOut 
)

Initialization for authenticated varibale services. If this initialization returns error status, other APIs will not work and expect to be not called then.

Parameters
[in]AuthVarLibContextInPointer to input auth variable lib context.
[out]AuthVarLibContextOutPointer to output auth variable lib context.
Return values
EFI_SUCCESSFunction successfully executed.
EFI_INVALID_PARAMETERIf AuthVarLibContextIn == NULL or AuthVarLibContextOut == NULL.
EFI_OUT_OF_RESOURCESFail to allocate enough resource.
EFI_UNSUPPORTEDUnsupported to process authenticated variable.

Definition at line 28 of file AuthVariableLibNull.c.

◆ AuthVariableLibProcessVariable()

EFI_STATUS EFIAPI AuthVariableLibProcessVariable ( IN CHAR16 *  VariableName,
IN EFI_GUID VendorGuid,
IN VOID *  Data,
IN UINTN  DataSize,
IN UINT32  Attributes 
)

Process variable with EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACCESS set.

Parameters
[in]VariableNameName of the variable.
[in]VendorGuidVariable vendor GUID.
[in]DataData pointer.
[in]DataSizeSize of Data.
[in]AttributesAttribute value of the variable.
Return values
EFI_SUCCESSThe firmware has successfully stored the variable and its data as defined by the Attributes.
EFI_INVALID_PARAMETERInvalid parameter.
EFI_WRITE_PROTECTEDVariable is write-protected.
EFI_OUT_OF_RESOURCESThere is not enough resource.
EFI_SECURITY_VIOLATIONThe variable is with EFI_VARIABLE_TIME_BASED_AUTHENTICATED_WRITE_ACESS set, but the AuthInfo does NOT pass the validation check carried out by the firmware.
EFI_UNSUPPORTEDUnsupported to process authenticated variable.

Definition at line 61 of file AuthVariableLibNull.c.