TianoCore EDK2 master
|
#include "WifiConnectionMgrFileUtil.h"
Go to the source code of this file.
Functions | |
BOOLEAN | IsDerPemEncodeCertificate (IN CONST CHAR16 *FileSuffix) |
EFI_STATUS | ReadFileContent (IN EFI_FILE_HANDLE FileHandle, IN OUT VOID **BufferPtr, OUT UINTN *FileSize, IN UINTN AddtionAllocateSize) |
CHAR16 *EFIAPI | DevicePathToStr (IN EFI_DEVICE_PATH_PROTOCOL *DevPath) |
CHAR16 * | ExtractFileNameFromDevicePath (IN EFI_DEVICE_PATH_PROTOCOL *DevicePath) |
BOOLEAN | UpdatePage (IN WIFI_MGR_PRIVATE_DATA *Private, IN EFI_DEVICE_PATH_PROTOCOL *FilePath, IN EFI_FORM_ID FormId) |
BOOLEAN | UpdateCAFromFile (IN WIFI_MGR_PRIVATE_DATA *Private, IN EFI_DEVICE_PATH_PROTOCOL *FilePath) |
BOOLEAN | UpdatePrivateKeyFromFile (IN WIFI_MGR_PRIVATE_DATA *Private, IN EFI_DEVICE_PATH_PROTOCOL *FilePath) |
Variables | |
CHAR16 * | mDerPemEncodedSuffix [] |
The file operation functions for WiFi Connection Manager.
Copyright (c) 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file WifiConnectionMgrFileUtil.c.
CHAR16 *EFIAPI DevicePathToStr | ( | IN EFI_DEVICE_PATH_PROTOCOL * | DevPath | ) |
This function converts an input device structure to a Unicode string.
[in] | DevPath | A pointer to the device path structure. |
Definition at line 131 of file WifiConnectionMgrFileUtil.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 resourece for AllocateCopyPool. |
Other | A new allocated string that represents the file name. |
Definition at line 154 of file WifiConnectionMgrFileUtil.c.
This code checks if the FileSuffix is one of the possible DER/PEM-encoded certificate suffix.
[in] | FileSuffix | The suffix of the input certificate file |
TRUE | It's a DER/PEM-encoded certificate. |
FALSE | It's NOT a DER/PEM-encoded certificate. |
Definition at line 30 of file WifiConnectionMgrFileUtil.c.
EFI_STATUS ReadFileContent | ( | IN EFI_FILE_HANDLE | FileHandle, |
IN OUT VOID ** | BufferPtr, | ||
OUT UINTN * | FileSize, | ||
IN UINTN | AddtionAllocateSize | ||
) |
Read file content into BufferPtr, the size of the allocate buffer is *FileSize plus AddtionAllocateSize.
[in] | FileHandle | The file to be read. |
[in,out] | BufferPtr | Pointers to the pointer of allocated buffer. |
[out] | FileSize | Size of input file |
[in] | AddtionAllocateSize | Addtion size the buffer need to be allocated. In case the buffer need to contain others besides the file content. |
EFI_SUCCESS | The file was read into the buffer. |
EFI_INVALID_PARAMETER | A parameter was invalid. |
EFI_OUT_OF_RESOURCES | A memory allocation failed. |
others | Unexpected error. |
Definition at line 62 of file WifiConnectionMgrFileUtil.c.
BOOLEAN UpdateCAFromFile | ( | IN WIFI_MGR_PRIVATE_DATA * | Private, |
IN EFI_DEVICE_PATH_PROTOCOL * | FilePath | ||
) |
Update the CA form base on the input file path info.
[in] | Private | The pointer to the global private data structure. |
[in] | FilePath | Point to the file path. |
TRUE | Exit caller function. |
FALSE | Not exit caller function. |
Definition at line 298 of file WifiConnectionMgrFileUtil.c.
BOOLEAN UpdatePage | ( | IN WIFI_MGR_PRIVATE_DATA * | Private, |
IN EFI_DEVICE_PATH_PROTOCOL * | FilePath, | ||
IN EFI_FORM_ID | FormId | ||
) |
Update the form base on the selected file.
[in] | Private | The pointer to the global private data structure. |
[in] | FilePath | Point to the file path. |
[in] | FormId | The form needs to display. |
TRUE | Exit caller function. |
FALSE | Not exit caller function. |
Definition at line 203 of file WifiConnectionMgrFileUtil.c.
BOOLEAN UpdatePrivateKeyFromFile | ( | IN WIFI_MGR_PRIVATE_DATA * | Private, |
IN EFI_DEVICE_PATH_PROTOCOL * | FilePath | ||
) |
Update the Private Key form base on the input file path info.
[in] | Private | The pointer to the global private data structure. |
[in] | FilePath | Point to the file path. |
TRUE | Exit caller function. |
FALSE | Not exit caller function. |
Definition at line 317 of file WifiConnectionMgrFileUtil.c.
CHAR16* mDerPemEncodedSuffix[] |
Definition at line 12 of file WifiConnectionMgrFileUtil.c.