TianoCore EDK2 master
|
#include "TlsImpl.h"
Go to the source code of this file.
Functions | |
EFI_STATUS EFIAPI | TlsConfigurationSetData (IN EFI_TLS_CONFIGURATION_PROTOCOL *This, IN EFI_TLS_CONFIG_DATA_TYPE DataType, IN VOID *Data, IN UINTN DataSize) |
EFI_STATUS EFIAPI | TlsConfigurationGetData (IN EFI_TLS_CONFIGURATION_PROTOCOL *This, IN EFI_TLS_CONFIG_DATA_TYPE DataType, IN OUT VOID *Data OPTIONAL, IN OUT UINTN *DataSize) |
Variables | |
EFI_TLS_CONFIGURATION_PROTOCOL | mTlsConfigurationProtocol |
Implementation of EFI TLS Configuration Protocol Interfaces.
Copyright (c) 2016, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file TlsConfigProtocol.c.
EFI_STATUS EFIAPI TlsConfigurationGetData | ( | IN EFI_TLS_CONFIGURATION_PROTOCOL * | This, |
IN EFI_TLS_CONFIG_DATA_TYPE | DataType, | ||
IN OUT VOID *Data | OPTIONAL, | ||
IN OUT UINTN * | DataSize | ||
) |
Get TLS configuration data.
The GetData() function gets TLS configuration.
[in] | This | Pointer to the EFI_TLS_CONFIGURATION_PROTOCOL instance. |
[in] | DataType | Configuration data type. |
[in,out] | Data | Pointer to configuration data. |
[in,out] | DataSize | Total size of configuration data. On input, it means the size of Data buffer. On output, it means the size of copied Data buffer if EFI_SUCCESS, and means the size of desired Data buffer if EFI_BUFFER_TOO_SMALL. |
EFI_SUCCESS | The TLS configuration data is got successfully. |
EFI_INVALID_PARAMETER | One or more of the following conditions is TRUE: This is NULL. DataSize is NULL. Data is NULL if *DataSize is not zero. |
EFI_UNSUPPORTED | The DataType is unsupported. |
EFI_NOT_FOUND | The TLS configuration data is not found. |
EFI_BUFFER_TOO_SMALL | The buffer is too small to hold the data. |
Definition at line 105 of file TlsConfigProtocol.c.
EFI_STATUS EFIAPI TlsConfigurationSetData | ( | IN EFI_TLS_CONFIGURATION_PROTOCOL * | This, |
IN EFI_TLS_CONFIG_DATA_TYPE | DataType, | ||
IN VOID * | Data, | ||
IN UINTN | DataSize | ||
) |
Set TLS configuration data.
The SetData() function sets TLS configuration to non-volatile storage or volatile storage.
[in] | This | Pointer to the EFI_TLS_CONFIGURATION_PROTOCOL instance. |
[in] | DataType | Configuration data type. |
[in] | Data | Pointer to configuration data. |
[in] | DataSize | Total size of configuration data. |
EFI_SUCCESS | The TLS configuration data is set successfully. |
EFI_INVALID_PARAMETER | One or more of the following conditions is TRUE: This is NULL. Data is NULL. DataSize is 0. |
EFI_UNSUPPORTED | The DataType is unsupported. |
EFI_OUT_OF_RESOURCES | Required system resources could not be allocated. |
Definition at line 39 of file TlsConfigProtocol.c.
EFI_TLS_CONFIGURATION_PROTOCOL mTlsConfigurationProtocol |
Definition at line 12 of file TlsConfigProtocol.c.