TianoCore EDK2 master
Loading...
Searching...
No Matches
WifiConnectionMgrFileUtil.h File Reference

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)
 

Detailed Description

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.

Function Documentation

◆ ReadFileContent()

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.

Parameters
[in]FileHandleThe file to be read.
[in,out]BufferPtrPointers to the pointer of allocated buffer.
[out]FileSizeSize of input file
[in]AddtionAllocateSizeAddtion size the buffer need to be allocated. In case the buffer need to contain others besides the file content.
Return values
EFI_SUCCESSThe file was read into the buffer.
EFI_INVALID_PARAMETERA parameter was invalid.
EFI_OUT_OF_RESOURCESA memory allocation failed.
othersUnexpected error.

Read file content into BufferPtr, the size of the allocate buffer is *FileSize plus AdditionAllocateSize.

Parameters
[in]FileHandleThe file to be read.
[in,out]BufferPtrPointers to the pointer of allocated buffer.
[out]FileSizeSize of input file
[in]AdditionAllocateSizeAddition size the buffer need to be allocated. In case the buffer need to contain others besides the file content.
Return values
EFI_SUCCESSThe file was read into the buffer.
EFI_INVALID_PARAMETERA parameter was invalid.
EFI_OUT_OF_RESOURCESA memory allocation failed.
othersUnexpected error.

Definition at line 512 of file TlsAuthConfigImpl.c.

◆ UpdateCAFromFile()

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.

Parameters
[in]PrivateThe pointer to the global private data structure.
[in]FilePathPoint to the file path.
Return values
TRUEExit caller function.
FALSENot exit caller function.

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

Parameters
[in]PrivateThe pointer to the global private data structure.
[in]FilePathPoint to the file path.
Return values
TRUEExit caller function.
FALSENot exit caller function.

Definition at line 298 of file WifiConnectionMgrFileUtil.c.

◆ UpdatePrivateKeyFromFile()

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.

Parameters
[in]PrivateThe pointer to the global private data structure.
[in]FilePathPoint to the file path.
Return values
TRUEExit caller function.
FALSENot exit caller function.

Update the Private Key form base on the input file path info.

Parameters
[in]PrivateThe pointer to the global private data structure.
[in]FilePathPoint to the file path.
Return values
TRUEExit caller function.
FALSENot exit caller function.

Definition at line 317 of file WifiConnectionMgrFileUtil.c.