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