]> git.proxmox.com Git - mirror_edk2.git/blame - CryptoPkg/Library/TlsLib/InternalTlsLib.h
CryptoPkg/TlsLib: pre-compute OpensslCipherLength in TlsCipherMappingTable
[mirror_edk2.git] / CryptoPkg / Library / TlsLib / InternalTlsLib.h
CommitLineData
264702a0
HW
1/** @file\r
2 Internal include file for TlsLib.\r
3\r
4Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>\r
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef __INTERNAL_TLS_LIB_H__\r
16#define __INTERNAL_TLS_LIB_H__\r
17\r
18#undef _WIN32\r
19#undef _WIN64\r
20\r
21#include <Library/BaseCryptLib.h>\r
22#include <openssl/ssl.h>\r
23#include <openssl/bio.h>\r
24#include <openssl/err.h>\r
25\r
26typedef struct {\r
27 //\r
28 // Main SSL Connection which is created by a server or a client\r
29 // per established connection.\r
30 //\r
31 SSL *Ssl;\r
32 //\r
33 // Memory BIO for the TLS/SSL Reading operations.\r
34 //\r
35 BIO *InBio;\r
36 //\r
37 // Memory BIO for the TLS/SSL Writing operations.\r
38 //\r
39 BIO *OutBio;\r
40} TLS_CONNECTION;\r
41\r
42#endif\r
43\r