12VOID *mStartOpCodeHandle =
NULL;
13VOID *mEndOpCodeHandle =
NULL;
17CHAR16 mTlsAuthConfigStorageName[] = L
"TLS_AUTH_CONFIG_IFR_NVDATA";
35 END_ENTIRE_DEVICE_PATH_SUBTYPE,
37 (UINT8)(END_DEVICE_PATH_LENGTH),
38 (UINT8)((END_DEVICE_PATH_LENGTH) >> 8)
46CHAR16 *mDerPemEncodedSuffix[] = {
70 for (Index = 0; mDerPemEncodedSuffix[Index] !=
NULL; Index++) {
71 if (
StrCmp (FileSuffix, mDerPemEncodedSuffix[Index]) == 0) {
122 IN CHAR16 *VariableName,
124 IN UINT16 LabelNumber,
125 IN EFI_FORM_ID FormId,
126 IN EFI_QUESTION_ID QuestionIdBase
133 VOID *StartOpCodeHandle;
134 VOID *EndOpCodeHandle;
143 EFI_STRING_ID GuidID;
150 StartOpCodeHandle =
NULL;
151 EndOpCodeHandle =
NULL;
157 if (StartOpCodeHandle ==
NULL) {
158 Status = EFI_OUT_OF_RESOURCES;
163 if (EndOpCodeHandle ==
NULL) {
164 Status = EFI_OUT_OF_RESOURCES;
178 StartLabel->
Number = LabelNumber;
187 EndLabel->
Number = LABEL_END;
193 Status =
gRT->GetVariable (VariableName, VendorGuid,
NULL, &DataSize, Data);
194 if (EFI_ERROR (Status) && (Status != EFI_BUFFER_TOO_SMALL)) {
200 Status = EFI_OUT_OF_RESOURCES;
204 Status =
gRT->GetVariable (VariableName, VendorGuid,
NULL, &DataSize, Data);
205 if (EFI_ERROR (Status)) {
210 if (GuidStr ==
NULL) {
211 Status = EFI_OUT_OF_RESOURCES;
218 ItemDataSize = (UINT32)DataSize;
235 for (Index = 0; Index < CertCount; Index++) {
247 (EFI_QUESTION_ID)(QuestionIdBase + GuidIndex++),
252 EFI_IFR_FLAG_CALLBACK,
264 Private->RegisteredHandle,
271 if (StartOpCodeHandle !=
NULL) {
275 if (EndOpCodeHandle !=
NULL) {
283 if (GuidStr !=
NULL) {
308 IN CHAR16 *VariableName,
310 IN UINT16 LabelNumber,
311 IN EFI_FORM_ID FormId,
312 IN EFI_QUESTION_ID QuestionIdBase,
341 Status =
gRT->GetVariable (VariableName, VendorGuid,
NULL, &DataSize,
NULL);
342 if (EFI_ERROR (Status) && (Status != EFI_BUFFER_TOO_SMALL)) {
347 if (OldData ==
NULL) {
348 Status = EFI_OUT_OF_RESOURCES;
352 Status =
gRT->GetVariable (VariableName, VendorGuid, &Attr, &DataSize, OldData);
353 if (EFI_ERROR (Status)) {
362 Status = EFI_OUT_OF_RESOURCES;
370 ItemDataSize = (UINT32)DataSize;
384 for (Index = 0; Index < CertCount; Index++) {
385 if (GuidIndex == DeleteIndex) {
418 Status = EFI_NOT_FOUND;
425 ItemDataSize = Offset;
428 ZeroMem (OldData, ItemDataSize);
431 DEBUG ((DEBUG_INFO,
" CertCount = %x\n", CertCount));
432 if (CertCount != 0) {
443 Status =
gRT->SetVariable (
450 if (EFI_ERROR (Status)) {
451 DEBUG ((DEBUG_ERROR,
"Failed to set variable, Status = %r\n", Status));
460 if (OldData !=
NULL) {
485 if (Private->FileContext->FHandle !=
NULL) {
486 Private->FileContext->FHandle->Close (Private->FileContext->FHandle);
487 Private->FileContext->FHandle =
NULL;
488 if (Private->FileContext->FileName !=
NULL) {
489 FreePool (Private->FileContext->FileName);
490 Private->FileContext->FileName =
NULL;
514 IN OUT VOID **BufferPtr,
521 UINT64 SourceFileSize;
525 if ((FileHandle ==
NULL) || (FileSize ==
NULL)) {
526 return EFI_INVALID_PARAMETER;
534 Status = FileHandle->SetPosition (FileHandle, (UINT64)-1);
535 if (EFI_ERROR (Status)) {
539 Status = FileHandle->GetPosition (FileHandle, &SourceFileSize);
540 if (EFI_ERROR (Status)) {
544 Status = FileHandle->SetPosition (FileHandle, 0);
545 if (EFI_ERROR (Status)) {
549 BufferSize = (
UINTN)SourceFileSize + AddtionAllocateSize;
551 if (Buffer ==
NULL) {
552 return EFI_OUT_OF_RESOURCES;
555 BufferSize = (
UINTN)SourceFileSize;
556 *FileSize = BufferSize;
558 Status = FileHandle->Read (FileHandle, &BufferSize, Buffer);
559 if (EFI_ERROR (Status) || (BufferSize != *FileSize)) {
562 Status = EFI_BAD_BUFFER_SIZE;
615 ASSERT (DevicePath !=
NULL);
618 MatchString = String;
622 while (MatchString !=
NULL) {
623 LastMatch = MatchString + 1;
624 MatchString =
StrStr (LastMatch, L
"\\");
627 Length =
StrLen (LastMatch);
629 if (FileName !=
NULL) {
630 *(FileName + Length) = 0;
651 IN CHAR16 *VariableName
674 Private->FileContext->FHandle,
679 if (EFI_ERROR (Status)) {
683 ASSERT (X509Data !=
NULL);
689 Status = EFI_OUT_OF_RESOURCES;
711 Status =
gRT->GetVariable (
713 &gEfiTlsCaCertificateGuid,
718 if (Status == EFI_BUFFER_TOO_SMALL) {
719 Attr |= EFI_VARIABLE_APPEND_WRITE;
720 }
else if (Status == EFI_NOT_FOUND) {
721 Attr = TLS_AUTH_CONFIG_VAR_BASE_ATTR;
726 Status =
gRT->SetVariable (
728 &gEfiTlsCaCertificateGuid,
733 if (EFI_ERROR (Status)) {
740 if (Private->CertGuid !=
NULL) {
742 Private->CertGuid =
NULL;
749 if (X509Data !=
NULL) {
771 IN CHAR16 *VariableName
777 if ((Private->FileContext->FileName ==
NULL) || (Private->FileContext->FHandle ==
NULL) || (Private->CertGuid ==
NULL)) {
778 return EFI_INVALID_PARAMETER;
784 NameLength =
StrLen (Private->FileContext->FileName);
785 if (NameLength <= 4) {
786 return EFI_INVALID_PARAMETER;
789 FilePostFix = Private->FileContext->FileName + NameLength - 4;
798 return EFI_UNSUPPORTED;
813 if (mStartOpCodeHandle !=
NULL) {
852 mStartLabel->
Number = LabelId;
854 PrivateData->RegisteredHandle,
875 IN EFI_FORM_ID FormId
879 EFI_STRING_ID StringToken;
883 if (FilePath !=
NULL) {
887 if (FileName ==
NULL) {
897 StringToken =
HiiSetString (mTlsAuthPrivateData->RegisteredHandle, 0, FileName,
NULL);
899 mTlsAuthPrivateData->FileContext->FileName = FileName;
903 &mTlsAuthPrivateData->FileContext->FHandle,
911 mStartLabel->
Number = FormId;
922 mTlsAuthPrivateData->RegisteredHandle,
946 return UpdatePage (FilePath, TLS_AUTH_CONFIG_FORMID4_FORM);
964 if (Private->DriverHandle !=
NULL) {
968 gBS->UninstallMultipleProtocolInterfaces (
969 Private->DriverHandle,
970 &gEfiDevicePathProtocolGuid,
971 &mTlsAuthConfigHiiVendorDevicePath,
972 &gEfiHiiConfigAccessProtocolGuid,
973 &Private->ConfigAccess,
976 Private->DriverHandle =
NULL;
979 if (Private->RegisteredHandle !=
NULL) {
984 Private->RegisteredHandle =
NULL;
987 if (Private->CertGuid !=
NULL) {
991 if (Private->FileContext !=
NULL) {
997 if (mStartOpCodeHandle !=
NULL) {
1001 if (mEndOpCodeHandle !=
NULL) {
1024 Private->Signature = TLS_AUTH_CONFIG_PRIVATE_DATA_SIGNATURE;
1033 Status =
gBS->InstallMultipleProtocolInterfaces (
1034 &Private->DriverHandle,
1035 &gEfiDevicePathProtocolGuid,
1036 &mTlsAuthConfigHiiVendorDevicePath,
1037 &gEfiHiiConfigAccessProtocolGuid,
1038 &Private->ConfigAccess,
1041 if (EFI_ERROR (Status)) {
1049 &gTlsAuthConfigGuid,
1050 Private->DriverHandle,
1051 TlsAuthConfigDxeStrings,
1052 TlsAuthConfigVfrBin,
1055 if (Private->RegisteredHandle ==
NULL) {
1056 Status = EFI_OUT_OF_RESOURCES;
1061 if (Private->FileContext ==
NULL) {
1062 Status = EFI_OUT_OF_RESOURCES;
1070 if (mStartOpCodeHandle ==
NULL) {
1071 Status = EFI_OUT_OF_RESOURCES;
1076 if (mEndOpCodeHandle ==
NULL) {
1077 Status = EFI_OUT_OF_RESOURCES;
1102 mEndLabel->
Number = LABEL_END;
1187 OUT EFI_STRING *Progress,
1188 OUT EFI_STRING *Results
1194 EFI_STRING ConfigRequest;
1195 EFI_STRING ConfigRequestHdr;
1197 BOOLEAN AllocatedRequest;
1199 if ((Progress ==
NULL) || (Results ==
NULL)) {
1200 return EFI_INVALID_PARAMETER;
1203 AllocatedRequest =
FALSE;
1204 ConfigRequestHdr =
NULL;
1205 ConfigRequest =
NULL;
1208 Private = TLS_AUTH_CONFIG_PRIVATE_FROM_THIS (This);
1211 ZeroMem (&Private->TlsAuthConfigNvData, BufferSize);
1213 *Progress = Request;
1216 return EFI_NOT_FOUND;
1219 ConfigRequest = Request;
1220 if ((Request ==
NULL) || (
StrStr (Request, L
"OFFSET") ==
NULL)) {
1227 ConfigRequestHdr =
HiiConstructConfigHdr (&gTlsAuthConfigGuid, mTlsAuthConfigStorageName, Private->DriverHandle);
1228 Size = (
StrLen (ConfigRequestHdr) + 32 + 1) *
sizeof (CHAR16);
1230 ASSERT (ConfigRequest !=
NULL);
1231 AllocatedRequest =
TRUE;
1232 UnicodeSPrint (ConfigRequest, Size, L
"%s&OFFSET=0&WIDTH=%016LX", ConfigRequestHdr, (UINT64)BufferSize);
1234 ConfigRequestHdr =
NULL;
1240 (UINT8 *)&Private->TlsAuthConfigNvData,
1249 if (AllocatedRequest) {
1256 if (Request ==
NULL) {
1258 }
else if (
StrStr (Request, L
"OFFSET") ==
NULL) {
1259 *Progress = Request +
StrLen (Request);
1309 IN CONST EFI_STRING Configuration,
1310 OUT EFI_STRING *Progress
1317 if (Progress ==
NULL) {
1318 return EFI_INVALID_PARAMETER;
1321 *Progress = Configuration;
1323 if (Configuration ==
NULL) {
1324 return EFI_INVALID_PARAMETER;
1331 if (!
HiiIsConfigHdrMatch (Configuration, &gTlsAuthConfigGuid, mTlsAuthConfigStorageName)) {
1332 return EFI_NOT_FOUND;
1335 Private = TLS_AUTH_CONFIG_PRIVATE_FROM_THIS (This);
1338 ZeroMem (&Private->TlsAuthConfigNvData, BufferSize);
1343 (UINT8 *)&Private->TlsAuthConfigNvData,
1347 if (EFI_ERROR (Status)) {
1383 IN EFI_BROWSER_ACTION Action,
1384 IN EFI_QUESTION_ID QuestionId,
1387 OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest
1391 RETURN_STATUS RStatus;
1398 EFI_HII_POPUP_SELECTION PopUpSelect;
1403 if ((This ==
NULL) || (Value ==
NULL) || (ActionRequest ==
NULL)) {
1404 return EFI_INVALID_PARAMETER;
1407 Private = TLS_AUTH_CONFIG_PRIVATE_FROM_THIS (This);
1409 mTlsAuthPrivateData = Private;
1410 Status =
gBS->LocateProtocol (&gEfiHiiPopupProtocolGuid,
NULL, (VOID **)&HiiPopUp);
1411 if (EFI_ERROR (Status)) {
1412 DEBUG ((DEBUG_ERROR,
"Can't find Form PopUp protocol. Exit (%r)\n", Status));
1421 if (IfrNvData ==
NULL) {
1422 return EFI_OUT_OF_RESOURCES;
1425 HiiGetBrowserData (&gTlsAuthConfigGuid, mTlsAuthConfigStorageName, BufferSize, (UINT8 *)IfrNvData);
1427 if ((Action != EFI_BROWSER_ACTION_CHANGED) &&
1428 (Action != EFI_BROWSER_ACTION_CHANGING) &&
1429 (Action != EFI_BROWSER_ACTION_FORM_CLOSE))
1431 Status = EFI_UNSUPPORTED;
1435 if (Action == EFI_BROWSER_ACTION_CHANGING) {
1436 switch (QuestionId) {
1437 case KEY_TLS_AUTH_CONFIG_CLIENT_CERT:
1438 case KEY_TLS_AUTH_CONFIG_SERVER_CA:
1442 ZeroMem (IfrNvData->CertGuid, sizeof (IfrNvData->CertGuid));
1443 if (Private->CertGuid ==
NULL) {
1445 if (Private->CertGuid ==
NULL) {
1446 return EFI_OUT_OF_RESOURCES;
1450 if (QuestionId == KEY_TLS_AUTH_CONFIG_CLIENT_CERT) {
1451 LabelId = TLS_AUTH_CONFIG_FORMID3_FORM;
1453 LabelId = TLS_AUTH_CONFIG_FORMID4_FORM;
1461 case KEY_TLS_AUTH_CONFIG_ENROLL_CERT_FROM_FILE:
1470 case KEY_TLS_AUTH_CONFIG_VALUE_SAVE_AND_EXIT:
1472 if (EFI_ERROR (Status)) {
1475 HiiPopUp->CreatePopup (
1477 EfiHiiPopupStyleError,
1479 Private->RegisteredHandle,
1487 case KEY_TLS_AUTH_CONFIG_VALUE_NO_SAVE_AND_EXIT:
1490 if (Private->CertGuid !=
NULL) {
1492 Private->CertGuid =
NULL;
1497 case KEY_TLS_AUTH_CONFIG_DELETE_CERT:
1500 EFI_TLS_CA_CERTIFICATE_VARIABLE,
1501 &gEfiTlsCaCertificateGuid,
1503 TLS_AUTH_CONFIG_FORMID5_FORM,
1504 OPTION_DEL_CA_ESTION_ID
1509 if ((QuestionId >= OPTION_DEL_CA_ESTION_ID) &&
1510 (QuestionId < (OPTION_DEL_CA_ESTION_ID + OPTION_CONFIG_RANGE)))
1514 EFI_TLS_CA_CERTIFICATE_VARIABLE,
1515 &gEfiTlsCaCertificateGuid,
1517 TLS_AUTH_CONFIG_FORMID5_FORM,
1518 OPTION_DEL_CA_ESTION_ID,
1519 QuestionId - OPTION_DEL_CA_ESTION_ID
1525 }
else if (Action == EFI_BROWSER_ACTION_CHANGED) {
1526 switch (QuestionId) {
1527 case KEY_TLS_AUTH_CONFIG_CERT_GUID:
1528 ASSERT (Private->CertGuid !=
NULL);
1530 IfrNvData->CertGuid,
1533 if (
RETURN_ERROR (RStatus) || (IfrNvData->CertGuid[GUID_STRING_LENGTH] != L
'\0')) {
1534 Status = EFI_INVALID_PARAMETER;
1538 *ActionRequest = EFI_BROWSER_ACTION_REQUEST_FORM_APPLY;
1543 }
else if (Action == EFI_BROWSER_ACTION_FORM_CLOSE) {
1549 if (!EFI_ERROR (Status)) {
1551 HiiSetBrowserData (&gTlsAuthConfigGuid, mTlsAuthConfigStorageName, BufferSize, (UINT8 *)IfrNvData,
NULL);
INTN EFIAPI StrCmp(IN CONST CHAR16 *FirstString, IN CONST CHAR16 *SecondString)
RETURN_STATUS EFIAPI StrToGuid(IN CONST CHAR16 *String, OUT GUID *Guid)
UINTN EFIAPI StrLen(IN CONST CHAR16 *String)
CHAR16 *EFIAPI StrStr(IN CONST CHAR16 *String, IN CONST CHAR16 *SearchString)
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
BOOLEAN EFIAPI CompareGuid(IN CONST GUID *Guid1, IN CONST GUID *Guid2)
GUID *EFIAPI CopyGuid(OUT GUID *DestinationGuid, IN CONST GUID *SourceGuid)
VOID *EFIAPI ZeroMem(OUT VOID *Buffer, IN UINTN Length)
#define HARDWARE_DEVICE_PATH
CHAR16 *EFIAPI ConvertDevicePathToText(IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath, IN BOOLEAN DisplayOnly, IN BOOLEAN AllowShortcuts)
VOID *EFIAPI AllocateZeroPool(IN UINTN AllocationSize)
VOID EFIAPI FreePool(IN VOID *Buffer)
VOID *EFIAPI AllocateCopyPool(IN UINTN AllocationSize, IN CONST VOID *Buffer)
EFI_STATUS EFIAPI ChooseFile(IN EFI_DEVICE_PATH_PROTOCOL *RootDirectory, IN CHAR16 *FileType OPTIONAL, IN CHOOSE_HANDLER ChooseHandler OPTIONAL, OUT EFI_DEVICE_PATH_PROTOCOL **File OPTIONAL)
EFI_STRING EFIAPI HiiConstructConfigHdr(IN CONST EFI_GUID *Guid OPTIONAL, IN CONST CHAR16 *Name OPTIONAL, IN EFI_HANDLE DriverHandle)
UINT8 *EFIAPI HiiCreateSubTitleOpCode(IN VOID *OpCodeHandle, IN EFI_STRING_ID Prompt, IN EFI_STRING_ID Help, IN UINT8 Flags, IN UINT8 Scope)
BOOLEAN EFIAPI HiiGetBrowserData(IN CONST EFI_GUID *VariableGuid OPTIONAL, IN CONST CHAR16 *VariableName OPTIONAL, IN UINTN BufferSize, OUT UINT8 *Buffer)
VOID *EFIAPI HiiAllocateOpCodeHandle(VOID)
VOID EFIAPI HiiFreeOpCodeHandle(VOID *OpCodeHandle)
EFI_HII_HANDLE EFIAPI HiiAddPackages(IN CONST EFI_GUID *PackageListGuid, IN EFI_HANDLE DeviceHandle OPTIONAL,...)
UINT8 *EFIAPI HiiCreateGuidOpCode(IN VOID *OpCodeHandle, IN CONST EFI_GUID *Guid, IN CONST VOID *GuidOpCode OPTIONAL, IN UINTN OpCodeSize)
UINT8 *EFIAPI HiiCreateCheckBoxOpCode(IN VOID *OpCodeHandle, IN EFI_QUESTION_ID QuestionId, IN EFI_VARSTORE_ID VarStoreId, IN UINT16 VarOffset, IN EFI_STRING_ID Prompt, IN EFI_STRING_ID Help, IN UINT8 QuestionFlags, IN UINT8 CheckBoxFlags, IN VOID *DefaultsOpCodeHandle OPTIONAL)
BOOLEAN EFIAPI HiiSetBrowserData(IN CONST EFI_GUID *VariableGuid OPTIONAL, IN CONST CHAR16 *VariableName OPTIONAL, IN UINTN BufferSize, IN CONST UINT8 *Buffer, IN CONST CHAR16 *RequestElement OPTIONAL)
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)
BOOLEAN EFIAPI HiiIsConfigHdrMatch(IN CONST EFI_STRING ConfigHdr, IN CONST EFI_GUID *Guid OPTIONAL, IN CONST CHAR16 *Name 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)
VOID EFIAPI HiiRemovePackages(IN EFI_HII_HANDLE HiiHandle)
#define EFI_IFR_EXTEND_OP_LABEL
UINTN EFIAPI UnicodeSPrint(OUT CHAR16 *StartOfBuffer, IN UINTN BufferSize, IN CONST CHAR16 *FormatString,...)
EFI_RUNTIME_SERVICES * gRT
#define RETURN_ERROR(StatusCode)
#define DEBUG(Expression)
EFI_STATUS TlsAuthConfigFormInit(IN TLS_AUTH_CONFIG_PRIVATE_DATA *Private)
UINTN GuidToString(IN EFI_GUID *Guid, IN CHAR16 *Buffer, IN UINTN BufferSize)
BOOLEAN IsDerPemEncodeCertificate(IN CONST CHAR16 *FileSuffix)
EFI_STATUS EFIAPI TlsAuthConfigAccessRouteConfig(IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This, IN CONST EFI_STRING Configuration, OUT EFI_STRING *Progress)
EFI_STATUS ReadFileContent(IN EFI_FILE_HANDLE FileHandle, IN OUT VOID **BufferPtr, OUT UINTN *FileSize, IN UINTN AddtionAllocateSize)
EFI_STATUS UpdateDeletePage(IN TLS_AUTH_CONFIG_PRIVATE_DATA *Private, IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, IN UINT16 LabelNumber, IN EFI_FORM_ID FormId, IN EFI_QUESTION_ID QuestionIdBase)
VOID RefreshUpdateData(VOID)
EFI_STATUS EnrollCertDatabase(IN TLS_AUTH_CONFIG_PRIVATE_DATA *Private, IN CHAR16 *VariableName)
BOOLEAN EFIAPI UpdateCAFromFile(IN EFI_DEVICE_PATH_PROTOCOL *FilePath)
VOID CleanUpPage(IN UINT16 LabelId, IN TLS_AUTH_CONFIG_PRIVATE_DATA *PrivateData)
EFI_STATUS EFIAPI TlsAuthConfigAccessCallback(IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This, IN EFI_BROWSER_ACTION Action, IN EFI_QUESTION_ID QuestionId, IN UINT8 Type, IN OUT EFI_IFR_TYPE_VALUE *Value, OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest)
EFI_STATUS DeleteCert(IN TLS_AUTH_CONFIG_PRIVATE_DATA *Private, IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, IN UINT16 LabelNumber, IN EFI_FORM_ID FormId, IN EFI_QUESTION_ID QuestionIdBase, IN UINTN DeleteIndex)
EFI_STATUS EnrollX509toVariable(IN TLS_AUTH_CONFIG_PRIVATE_DATA *Private, IN CHAR16 *VariableName)
CHAR16 *EFIAPI DevicePathToStr(IN EFI_DEVICE_PATH_PROTOCOL *DevPath)
EFI_STATUS TlsAuthConfigFormUnload(IN TLS_AUTH_CONFIG_PRIVATE_DATA *Private)
BOOLEAN UpdatePage(IN EFI_DEVICE_PATH_PROTOCOL *FilePath, IN EFI_FORM_ID FormId)
VOID CleanFileContext(IN TLS_AUTH_CONFIG_PRIVATE_DATA *Private)
CHAR16 * ExtractFileNameFromDevicePath(IN EFI_DEVICE_PATH_PROTOCOL *DevicePath)
EFI_STATUS EFIAPI TlsAuthConfigAccessExtractConfig(IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This, IN CONST EFI_STRING Request, OUT EFI_STRING *Progress, OUT EFI_STRING *Results)
EFI_HII_CONFIG_ROUTING_PROTOCOL * gHiiConfigRouting
EFI_STATUS EFIAPI EfiOpenFileByDevicePath(IN OUT EFI_DEVICE_PATH_PROTOCOL **FilePath, OUT EFI_FILE_PROTOCOL **File, IN UINT64 OpenMode, IN UINT64 Attributes)
UINT32 SignatureHeaderSize