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 | |
2009f6b4 | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
264702a0 HW |
6 | \r |
7 | **/\r | |
8 | \r | |
9 | #ifndef __INTERNAL_TLS_LIB_H__\r | |
10 | #define __INTERNAL_TLS_LIB_H__\r | |
11 | \r | |
12 | #undef _WIN32\r | |
13 | #undef _WIN64\r | |
14 | \r | |
15 | #include <Library/BaseCryptLib.h>\r | |
a347b089 LE |
16 | #include <Library/BaseMemoryLib.h>\r |
17 | #include <Library/DebugLib.h>\r | |
2167c7f7 LE |
18 | #include <Library/MemoryAllocationLib.h>\r |
19 | #include <Library/SafeIntLib.h>\r | |
bb78d969 YL |
20 | #include <Protocol/Tls.h>\r |
21 | #include <IndustryStandard/Tls1.h>\r | |
22 | #include <Library/PcdLib.h>\r | |
23 | #include <openssl/obj_mac.h>\r | |
264702a0 HW |
24 | #include <openssl/ssl.h>\r |
25 | #include <openssl/bio.h>\r | |
26 | #include <openssl/err.h>\r | |
27 | \r | |
28 | typedef struct {\r | |
29 | //\r | |
30 | // Main SSL Connection which is created by a server or a client\r | |
31 | // per established connection.\r | |
32 | //\r | |
7c342378 | 33 | SSL *Ssl;\r |
264702a0 HW |
34 | //\r |
35 | // Memory BIO for the TLS/SSL Reading operations.\r | |
36 | //\r | |
7c342378 | 37 | BIO *InBio;\r |
264702a0 HW |
38 | //\r |
39 | // Memory BIO for the TLS/SSL Writing operations.\r | |
40 | //\r | |
7c342378 | 41 | BIO *OutBio;\r |
264702a0 HW |
42 | } TLS_CONNECTION;\r |
43 | \r | |
44 | #endif\r |