TianoCore EDK2 master
|
#include "SecureBootConfigImpl.h"
Go to the source code of this file.
Functions | |
VOID | RefreshUpdateData (VOID) |
VOID | CleanUpPage (IN UINT16 LabelId, IN SECUREBOOT_CONFIG_PRIVATE_DATA *PrivateData) |
CHAR16 * | ExtractFileNameFromDevicePath (IN EFI_DEVICE_PATH_PROTOCOL *DevicePath) |
BOOLEAN | UpdatePage (IN EFI_DEVICE_PATH_PROTOCOL *FilePath, IN EFI_FORM_ID FormId) |
BOOLEAN EFIAPI | UpdatePKFromFile (IN EFI_DEVICE_PATH_PROTOCOL *FilePath) |
BOOLEAN EFIAPI | UpdateKEKFromFile (IN EFI_DEVICE_PATH_PROTOCOL *FilePath) |
BOOLEAN EFIAPI | UpdateDBFromFile (IN EFI_DEVICE_PATH_PROTOCOL *FilePath) |
BOOLEAN EFIAPI | UpdateDBXFromFile (IN EFI_DEVICE_PATH_PROTOCOL *FilePath) |
BOOLEAN EFIAPI | UpdateDBTFromFile (IN EFI_DEVICE_PATH_PROTOCOL *FilePath) |
Variables | |
VOID * | mStartOpCodeHandle = NULL |
VOID * | mEndOpCodeHandle = NULL |
EFI_IFR_GUID_LABEL * | mStartLabel = NULL |
EFI_IFR_GUID_LABEL * | mEndLabel = NULL |
Internal file explorer functions for SecureBoot configuration module.
Copyright (c) 2012 - 2016, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file SecureBootConfigFileExplorer.c.
VOID CleanUpPage | ( | IN UINT16 | LabelId, |
IN SECUREBOOT_CONFIG_PRIVATE_DATA * | PrivateData | ||
) |
Clean up the dynamic opcode at label and form specified by both LabelId.
[in] | LabelId | It is both the Form ID and Label ID for opcode deletion. |
[in] | PrivateData | Module private data. |
Definition at line 57 of file SecureBootConfigFileExplorer.c.
CHAR16 * ExtractFileNameFromDevicePath | ( | IN EFI_DEVICE_PATH_PROTOCOL * | DevicePath | ) |
Extract filename from device path. The returned buffer is allocated using AllocateCopyPool. The caller is responsible for freeing the allocated buffer using FreePool(). If return NULL means not enough memory resource.
DevicePath | Device path. |
NULL | Not enough memory resource for AllocateCopyPool. |
Other | A new allocated string that represents the file name. |
Definition at line 89 of file SecureBootConfigFileExplorer.c.
VOID RefreshUpdateData | ( | VOID | ) |
Refresh the global UpdateData structure.
Definition at line 21 of file SecureBootConfigFileExplorer.c.
BOOLEAN EFIAPI UpdateDBFromFile | ( | IN EFI_DEVICE_PATH_PROTOCOL * | FilePath | ) |
Update the DB form base on the input file path info.
FilePath | Point to the file path. |
TRUE | Exit caller function. |
FALSE | Not exit caller function. |
Definition at line 236 of file SecureBootConfigFileExplorer.c.
BOOLEAN EFIAPI UpdateDBTFromFile | ( | IN EFI_DEVICE_PATH_PROTOCOL * | FilePath | ) |
Update the DBT form base on the input file path info.
FilePath | Point to the file path. |
TRUE | Exit caller function. |
FALSE | Not exit caller function. |
Definition at line 270 of file SecureBootConfigFileExplorer.c.
BOOLEAN EFIAPI UpdateDBXFromFile | ( | IN EFI_DEVICE_PATH_PROTOCOL * | FilePath | ) |
Update the DBX form base on the input file path info.
FilePath | Point to the file path. |
TRUE | Exit caller function. |
FALSE | Not exit caller function. |
Definition at line 253 of file SecureBootConfigFileExplorer.c.
BOOLEAN EFIAPI UpdateKEKFromFile | ( | IN EFI_DEVICE_PATH_PROTOCOL * | FilePath | ) |
Update the KEK form base on the input file path info.
FilePath | Point to the file path. |
TRUE | Exit caller function. |
FALSE | Not exit caller function. |
Definition at line 219 of file SecureBootConfigFileExplorer.c.
BOOLEAN UpdatePage | ( | IN EFI_DEVICE_PATH_PROTOCOL * | FilePath, |
IN EFI_FORM_ID | FormId | ||
) |
Update the form base on the selected file.
FilePath | Point to the file path. |
FormId | The form need to display. |
TRUE | Exit caller function. |
FALSE | Not exit caller function. |
Definition at line 133 of file SecureBootConfigFileExplorer.c.
BOOLEAN EFIAPI UpdatePKFromFile | ( | IN EFI_DEVICE_PATH_PROTOCOL * | FilePath | ) |
Update the PK form base on the input file path info.
FilePath | Point to the file path. |
TRUE | Exit caller function. |
FALSE | Not exit caller function. |
Definition at line 202 of file SecureBootConfigFileExplorer.c.
EFI_IFR_GUID_LABEL* mEndLabel = NULL |
Definition at line 14 of file SecureBootConfigFileExplorer.c.
VOID* mEndOpCodeHandle = NULL |
Definition at line 12 of file SecureBootConfigFileExplorer.c.
EFI_IFR_GUID_LABEL* mStartLabel = NULL |
Definition at line 13 of file SecureBootConfigFileExplorer.c.
VOID* mStartOpCodeHandle = NULL |
Definition at line 11 of file SecureBootConfigFileExplorer.c.