]>
Commit | Line | Data |
---|---|---|
264702a0 HW |
1 | /** @file\r |
2 | Internal include file for TlsLib.\r | |
3 | \r | |
4 | Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>\r | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT 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 | |
a347b089 LE |
22 | #include <Library/BaseMemoryLib.h>\r |
23 | #include <Library/DebugLib.h>\r | |
2167c7f7 LE |
24 | #include <Library/MemoryAllocationLib.h>\r |
25 | #include <Library/SafeIntLib.h>\r | |
264702a0 HW |
26 | #include <openssl/ssl.h>\r |
27 | #include <openssl/bio.h>\r | |
28 | #include <openssl/err.h>\r | |
29 | \r | |
30 | typedef struct {\r | |
31 | //\r | |
32 | // Main SSL Connection which is created by a server or a client\r | |
33 | // per established connection.\r | |
34 | //\r | |
35 | SSL *Ssl;\r | |
36 | //\r | |
37 | // Memory BIO for the TLS/SSL Reading operations.\r | |
38 | //\r | |
39 | BIO *InBio;\r | |
40 | //\r | |
41 | // Memory BIO for the TLS/SSL Writing operations.\r | |
42 | //\r | |
43 | BIO *OutBio;\r | |
44 | } TLS_CONNECTION;\r | |
45 | \r | |
46 | #endif\r | |
47 | \r |