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 Library Wrapper Implementation over OpenSSL.
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 TlsInit.c.
VOID EFIAPI TlsCtxFree | ( | IN VOID * | TlsCtx | ) |
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. |
VOID EFIAPI TlsFree | ( | IN VOID * | Tls | ) |
BOOLEAN EFIAPI TlsInitialize | ( | VOID | ) |
Initializes the OpenSSL 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 OpenSSL library has been initialized. |
FALSE | Failed to initialize the OpenSSL library. |
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. |