TianoCore EDK2 master
Loading...
Searching...
No Matches
TlsConfigProtocol.c File Reference
#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
 

Detailed Description

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.

Function Documentation

◆ TlsConfigurationGetData()

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.

Parameters
[in]ThisPointer to the EFI_TLS_CONFIGURATION_PROTOCOL instance.
[in]DataTypeConfiguration data type.
[in,out]DataPointer to configuration data.
[in,out]DataSizeTotal 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.
Return values
EFI_SUCCESSThe TLS configuration data is got successfully.
EFI_INVALID_PARAMETEROne or more of the following conditions is TRUE: This is NULL. DataSize is NULL. Data is NULL if *DataSize is not zero.
EFI_UNSUPPORTEDThe DataType is unsupported.
EFI_NOT_FOUNDThe TLS configuration data is not found.
EFI_BUFFER_TOO_SMALLThe buffer is too small to hold the data.

Definition at line 105 of file TlsConfigProtocol.c.

◆ TlsConfigurationSetData()

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.

Parameters
[in]ThisPointer to the EFI_TLS_CONFIGURATION_PROTOCOL instance.
[in]DataTypeConfiguration data type.
[in]DataPointer to configuration data.
[in]DataSizeTotal size of configuration data.
Return values
EFI_SUCCESSThe TLS configuration data is set successfully.
EFI_INVALID_PARAMETEROne or more of the following conditions is TRUE: This is NULL. Data is NULL. DataSize is 0.
EFI_UNSUPPORTEDThe DataType is unsupported.
EFI_OUT_OF_RESOURCESRequired system resources could not be allocated.

Definition at line 39 of file TlsConfigProtocol.c.

Variable Documentation

◆ mTlsConfigurationProtocol

EFI_TLS_CONFIGURATION_PROTOCOL mTlsConfigurationProtocol
Initial value:
= {
}
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)
EFI_STATUS EFIAPI TlsConfigurationSetData(IN EFI_TLS_CONFIGURATION_PROTOCOL *This, IN EFI_TLS_CONFIG_DATA_TYPE DataType, IN VOID *Data, IN UINTN DataSize)

Definition at line 12 of file TlsConfigProtocol.c.