TianoCore EDK2 master
|
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) |
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.
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.
[in] | AuthVarLibContextIn | Pointer to input auth variable lib context. |
[out] | AuthVarLibContextOut | Pointer to output auth variable lib context. |
EFI_SUCCESS | Function successfully executed. |
EFI_INVALID_PARAMETER | If AuthVarLibContextIn == NULL or AuthVarLibContextOut == NULL. |
EFI_OUT_OF_RESOURCES | Fail to allocate enough resource. |
EFI_UNSUPPORTED | Unsupported to process authenticated variable. |
Definition at line 28 of file AuthVariableLibNull.c.
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.
[in] | VariableName | Name of the variable. |
[in] | VendorGuid | Variable vendor GUID. |
[in] | Data | Data pointer. |
[in] | DataSize | Size of Data. |
[in] | Attributes | Attribute value of the variable. |
EFI_SUCCESS | The firmware has successfully stored the variable and its data as defined by the Attributes. |
EFI_INVALID_PARAMETER | Invalid parameter. |
EFI_WRITE_PROTECTED | Variable is write-protected. |
EFI_OUT_OF_RESOURCES | There is not enough resource. |
EFI_SECURITY_VIOLATION | The 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_UNSUPPORTED | Unsupported to process authenticated variable. |
Definition at line 61 of file AuthVariableLibNull.c.