11VOID *mStartOpCodeHandle =
NULL;
12VOID *mEndOpCodeHandle =
NULL;
28 if (mStartOpCodeHandle !=
NULL) {
67 mStartLabel->
Number = LabelId;
69 PrivateData->HiiHandle,
70 &gSecureBootConfigFormSetGuid,
99 ASSERT (DevicePath !=
NULL);
102 MatchString = String;
106 while (MatchString !=
NULL) {
107 LastMatch = MatchString + 1;
108 MatchString =
StrStr (LastMatch, L
"\\");
111 Length =
StrLen (LastMatch);
113 if (FileName !=
NULL) {
114 *(FileName + Length) = 0;
135 IN EFI_FORM_ID FormId
139 EFI_STRING_ID StringToken;
143 if (FilePath !=
NULL) {
147 if (FileName ==
NULL) {
157 StringToken =
HiiSetString (gSecureBootPrivateData->HiiHandle, 0, FileName,
NULL);
159 gSecureBootPrivateData->FileContext->FileName = FileName;
163 &gSecureBootPrivateData->FileContext->FHandle,
171 mStartLabel->
Number = FormId;
182 gSecureBootPrivateData->HiiHandle,
183 &gSecureBootConfigFormSetGuid,
206 return UpdatePage (FilePath, FORMID_ENROLL_PK_FORM);
223 return UpdatePage (FilePath, FORMID_ENROLL_KEK_FORM);
240 return UpdatePage (FilePath, SECUREBOOT_ENROLL_SIGNATURE_TO_DB);
257 return UpdatePage (FilePath, SECUREBOOT_ENROLL_SIGNATURE_TO_DBX);
274 return UpdatePage (FilePath, SECUREBOOT_ENROLL_SIGNATURE_TO_DBT);
UINTN EFIAPI StrLen(IN CONST CHAR16 *String)
CHAR16 *EFIAPI StrStr(IN CONST CHAR16 *String, IN CONST CHAR16 *SearchString)
VOID EFIAPI FreePool(IN VOID *Buffer)
VOID *EFIAPI AllocateCopyPool(IN UINTN AllocationSize, IN CONST VOID *Buffer)
UINT8 *EFIAPI HiiCreateSubTitleOpCode(IN VOID *OpCodeHandle, IN EFI_STRING_ID Prompt, IN EFI_STRING_ID Help, IN UINT8 Flags, IN UINT8 Scope)
VOID *EFIAPI HiiAllocateOpCodeHandle(VOID)
VOID EFIAPI HiiFreeOpCodeHandle(VOID *OpCodeHandle)
UINT8 *EFIAPI HiiCreateGuidOpCode(IN VOID *OpCodeHandle, IN CONST EFI_GUID *Guid, IN CONST VOID *GuidOpCode OPTIONAL, IN UINTN OpCodeSize)
EFI_STATUS EFIAPI HiiUpdateForm(IN EFI_HII_HANDLE HiiHandle, IN EFI_GUID *FormSetGuid OPTIONAL, IN EFI_FORM_ID FormId, IN VOID *StartOpCodeHandle, IN VOID *EndOpCodeHandle OPTIONAL)
EFI_STRING_ID EFIAPI HiiSetString(IN EFI_HII_HANDLE HiiHandle, IN EFI_STRING_ID StringId OPTIONAL, IN CONST EFI_STRING String, IN CONST CHAR8 *SupportedLanguages OPTIONAL)
#define EFI_IFR_EXTEND_OP_LABEL
CHAR16 * DevicePathToStr(IN EFI_DEVICE_PATH_PROTOCOL *DevPath)
BOOLEAN EFIAPI UpdatePKFromFile(IN EFI_DEVICE_PATH_PROTOCOL *FilePath)
BOOLEAN EFIAPI UpdateDBTFromFile(IN EFI_DEVICE_PATH_PROTOCOL *FilePath)
VOID RefreshUpdateData(VOID)
VOID CleanUpPage(IN UINT16 LabelId, IN SECUREBOOT_CONFIG_PRIVATE_DATA *PrivateData)
BOOLEAN EFIAPI UpdateDBXFromFile(IN EFI_DEVICE_PATH_PROTOCOL *FilePath)
BOOLEAN EFIAPI UpdateKEKFromFile(IN EFI_DEVICE_PATH_PROTOCOL *FilePath)
BOOLEAN UpdatePage(IN EFI_DEVICE_PATH_PROTOCOL *FilePath, IN EFI_FORM_ID FormId)
CHAR16 * ExtractFileNameFromDevicePath(IN EFI_DEVICE_PATH_PROTOCOL *DevicePath)
BOOLEAN EFIAPI UpdateDBFromFile(IN EFI_DEVICE_PATH_PROTOCOL *FilePath)
EFI_STATUS EFIAPI EfiOpenFileByDevicePath(IN OUT EFI_DEVICE_PATH_PROTOCOL **FilePath, OUT EFI_FILE_PROTOCOL **File, IN UINT64 OpenMode, IN UINT64 Attributes)