TianoCore EDK2 master
|
#include "WifiConnectionMgrDxe.h"
Go to the source code of this file.
Functions | |
EFI_STATUS | ReadFileContent (IN EFI_FILE_HANDLE FileHandle, IN OUT VOID **BufferPtr, OUT UINTN *FileSize, IN UINTN AddtionAllocateSize) |
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) |
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.h.
EFI_STATUS ReadFileContent | ( | IN EFI_FILE_HANDLE | FileHandle, |
IN OUT VOID ** | BufferPtr, | ||
OUT UINTN * | FileSize, | ||
IN UINTN | AdditionAllocateSize | ||
) |
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. |
Read file content into BufferPtr, the size of the allocate buffer is *FileSize plus AdditionAllocateSize.
[in] | FileHandle | The file to be read. |
[in,out] | BufferPtr | Pointers to the pointer of allocated buffer. |
[out] | FileSize | Size of input file |
[in] | AdditionAllocateSize | Addition 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 512 of file TlsAuthConfigImpl.c.
BOOLEAN UpdateCAFromFile | ( | IN WIFI_MGR_PRIVATE_DATA * | Private, |
IN EFI_DEVICE_PATH_PROTOCOL * | FilePath | ||
) |
Update the CA cert 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. |
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 UpdatePrivateKeyFromFile | ( | IN WIFI_MGR_PRIVATE_DATA * | Private, |
IN EFI_DEVICE_PATH_PROTOCOL * | FilePath | ||
) |
Update the Private Key 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. |
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.