mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
efi_loader: function to get GUID for variable name
In multiple places we need the default GUID matching a variable name. The patch provides a library function. For secure boot related variables like 'PK', 'KEK', 'db' a lookup table is used. For all other variable names EFI_GLOBAL_VARIABLE is returned. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
d47671c631
commit
e618d1d285
2 changed files with 17 additions and 0 deletions
|
@ -256,6 +256,14 @@ efi_status_t efi_init_secure_state(void);
|
|||
enum efi_auth_var_type efi_auth_var_get_type(const u16 *name,
|
||||
const efi_guid_t *guid);
|
||||
|
||||
/**
|
||||
* efi_auth_var_get_guid() - get the predefined GUID for a variable name
|
||||
*
|
||||
* @name: name of UEFI variable
|
||||
* Return: guid of UEFI variable
|
||||
*/
|
||||
const efi_guid_t *efi_auth_var_get_guid(const u16 *name);
|
||||
|
||||
/**
|
||||
* efi_get_next_variable_name_mem() - Runtime common code across efi variable
|
||||
* implementations for GetNextVariable()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue