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

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_LABELmStartLabel = NULL
 
EFI_IFR_GUID_LABELmEndLabel = NULL
 

Detailed Description

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.

Function Documentation

◆ CleanUpPage()

VOID CleanUpPage ( IN UINT16  LabelId,
IN SECUREBOOT_CONFIG_PRIVATE_DATA PrivateData 
)

Clean up the dynamic opcode at label and form specified by both LabelId.

Parameters
[in]LabelIdIt is both the Form ID and Label ID for opcode deletion.
[in]PrivateDataModule private data.

Definition at line 57 of file SecureBootConfigFileExplorer.c.

◆ ExtractFileNameFromDevicePath()

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.

Parameters
DevicePathDevice path.
Return values
NULLNot enough memory resource for AllocateCopyPool.
OtherA new allocated string that represents the file name.

Definition at line 89 of file SecureBootConfigFileExplorer.c.

◆ RefreshUpdateData()

VOID RefreshUpdateData ( VOID  )

Refresh the global UpdateData structure.

Definition at line 21 of file SecureBootConfigFileExplorer.c.

◆ UpdateDBFromFile()

BOOLEAN EFIAPI UpdateDBFromFile ( IN EFI_DEVICE_PATH_PROTOCOL FilePath)

Update the DB form base on the input file path info.

Parameters
FilePathPoint to the file path.
Return values
TRUEExit caller function.
FALSENot exit caller function.

Definition at line 236 of file SecureBootConfigFileExplorer.c.

◆ UpdateDBTFromFile()

BOOLEAN EFIAPI UpdateDBTFromFile ( IN EFI_DEVICE_PATH_PROTOCOL FilePath)

Update the DBT form base on the input file path info.

Parameters
FilePathPoint to the file path.
Return values
TRUEExit caller function.
FALSENot exit caller function.

Definition at line 270 of file SecureBootConfigFileExplorer.c.

◆ UpdateDBXFromFile()

BOOLEAN EFIAPI UpdateDBXFromFile ( IN EFI_DEVICE_PATH_PROTOCOL FilePath)

Update the DBX form base on the input file path info.

Parameters
FilePathPoint to the file path.
Return values
TRUEExit caller function.
FALSENot exit caller function.

Definition at line 253 of file SecureBootConfigFileExplorer.c.

◆ UpdateKEKFromFile()

BOOLEAN EFIAPI UpdateKEKFromFile ( IN EFI_DEVICE_PATH_PROTOCOL FilePath)

Update the KEK form base on the input file path info.

Parameters
FilePathPoint to the file path.
Return values
TRUEExit caller function.
FALSENot exit caller function.

Definition at line 219 of file SecureBootConfigFileExplorer.c.

◆ UpdatePage()

BOOLEAN UpdatePage ( IN EFI_DEVICE_PATH_PROTOCOL FilePath,
IN EFI_FORM_ID  FormId 
)

Update the form base on the selected file.

Parameters
FilePathPoint to the file path.
FormIdThe form need to display.
Return values
TRUEExit caller function.
FALSENot exit caller function.

Definition at line 133 of file SecureBootConfigFileExplorer.c.

◆ UpdatePKFromFile()

BOOLEAN EFIAPI UpdatePKFromFile ( IN EFI_DEVICE_PATH_PROTOCOL FilePath)

Update the PK form base on the input file path info.

Parameters
FilePathPoint to the file path.
Return values
TRUEExit caller function.
FALSENot exit caller function.

Definition at line 202 of file SecureBootConfigFileExplorer.c.

Variable Documentation

◆ mEndLabel

EFI_IFR_GUID_LABEL* mEndLabel = NULL

Definition at line 14 of file SecureBootConfigFileExplorer.c.

◆ mEndOpCodeHandle

VOID* mEndOpCodeHandle = NULL

Definition at line 12 of file SecureBootConfigFileExplorer.c.

◆ mStartLabel

EFI_IFR_GUID_LABEL* mStartLabel = NULL

Definition at line 13 of file SecureBootConfigFileExplorer.c.

◆ mStartOpCodeHandle

VOID* mStartOpCodeHandle = NULL

Definition at line 11 of file SecureBootConfigFileExplorer.c.