TianoCore EDK2 master
|
#include "InternalTlsLib.h"
Go to the source code of this file.
Functions | |
BOOLEAN EFIAPI | TlsInitialize (VOID) |
VOID EFIAPI | TlsCtxFree (IN VOID *TlsCtx) |
VOID *EFIAPI | TlsCtxNew (IN UINT8 MajorVer, IN UINT8 MinorVer) |
VOID EFIAPI | TlsFree (IN VOID *Tls) |
VOID *EFIAPI | TlsNew (IN VOID *TlsCtx) |
SSL/TLS Initialization Null Library Wrapper Implementation.
Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.
(C) Copyright 2016 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file TlsInitNull.c.
VOID EFIAPI TlsCtxFree | ( | IN VOID * | TlsCtx | ) |
Free an allocated SSL_CTX object.
[in] | TlsCtx | Pointer to the SSL_CTX object to be released. |
Definition at line 41 of file TlsInitNull.c.
Creates a new SSL_CTX object as framework to establish TLS/SSL enabled connections.
[in] | MajorVer | Major Version of TLS/SSL Protocol. |
[in] | MinorVer | Minor Version of TLS/SSL Protocol. |
Definition at line 62 of file TlsInitNull.c.
VOID EFIAPI TlsFree | ( | IN VOID * | Tls | ) |
Free an allocated TLS object.
This function removes the TLS object pointed to by Tls and frees up the allocated memory. If Tls is NULL, nothing is done.
[in] | Tls | Pointer to the TLS object to be freed. |
Definition at line 82 of file TlsInitNull.c.
BOOLEAN EFIAPI TlsInitialize | ( | VOID | ) |
Initializes the library.
This function registers ciphers and digests used directly and indirectly by SSL/TLS, and initializes the readable error messages. This function must be called before any other action takes places.
TRUE | The library has been initialized. |
FALSE | Failed to initialize the library. |
Definition at line 25 of file TlsInitNull.c.
VOID *EFIAPI TlsNew | ( | IN VOID * | TlsCtx | ) |
Create a new TLS object for a connection.
This function creates a new TLS object for a connection. The new object inherits the setting of the underlying context TlsCtx: connection method, options, verification setting.
[in] | TlsCtx | Pointer to the SSL_CTX object. |
Definition at line 104 of file TlsInitNull.c.