ReactOS
0.4.16-dev-814-g656a5dc
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
altcp_tls_mbedtls_structs.h
Go to the documentation of this file.
1
8
/*
9
* Copyright (c) 2017 Simon Goldschmidt
10
* All rights reserved.
11
*
12
* Redistribution and use in source and binary forms, with or without modification,
13
* are permitted provided that the following conditions are met:
14
*
15
* 1. Redistributions of source code must retain the above copyright notice,
16
* this list of conditions and the following disclaimer.
17
* 2. Redistributions in binary form must reproduce the above copyright notice,
18
* this list of conditions and the following disclaimer in the documentation
19
* and/or other materials provided with the distribution.
20
* 3. The name of the author may not be used to endorse or promote products
21
* derived from this software without specific prior written permission.
22
*
23
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
24
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
25
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
26
* SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
27
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
28
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
31
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
32
* OF SUCH DAMAGE.
33
*
34
* This file is part of the lwIP TCP/IP stack.
35
*
36
* Author: Simon Goldschmidt <goldsimon@gmx.de>
37
*
38
*/
39
#ifndef LWIP_HDR_ALTCP_MBEDTLS_STRUCTS_H
40
#define LWIP_HDR_ALTCP_MBEDTLS_STRUCTS_H
41
42
#include "
lwip/opt.h
"
43
44
#if LWIP_ALTCP
/* don't build if not configured for use in lwipopts.h */
45
46
#include "
lwip/apps/altcp_tls_mbedtls_opts.h
"
47
48
#if LWIP_ALTCP_TLS && LWIP_ALTCP_TLS_MBEDTLS
49
50
#include "
lwip/altcp.h
"
51
#include "
lwip/pbuf.h
"
52
53
#include "
mbedtls/ssl.h
"
54
55
#ifdef __cplusplus
56
extern
"C"
{
57
#endif
58
59
#define ALTCP_MBEDTLS_FLAGS_HANDSHAKE_DONE 0x01
60
#define ALTCP_MBEDTLS_FLAGS_UPPER_CALLED 0x02
61
#define ALTCP_MBEDTLS_FLAGS_RX_CLOSE_QUEUED 0x04
62
#define ALTCP_MBEDTLS_FLAGS_RX_CLOSED 0x08
63
64
typedef
struct
altcp_mbedtls_state_s {
65
void
*conf;
66
mbedtls_ssl_context
ssl_context
;
67
/* chain of rx pbufs (before decryption) */
68
struct
pbuf
*rx;
69
struct
pbuf
*rx_app;
70
u8_t
flags
;
71
int
rx_passed_unrecved;
72
int
bio_bytes_read;
73
int
bio_bytes_appl;
74
int
overhead_bytes_adjust;
75
} altcp_mbedtls_state_t;
76
77
#ifdef __cplusplus
78
}
79
#endif
80
81
#endif
/* LWIP_ALTCP_TLS && LWIP_ALTCP_TLS_MBEDTLS */
82
#endif
/* LWIP_ALTCP */
83
#endif
/* LWIP_HDR_ALTCP_MBEDTLS_STRUCTS_H */
altcp.h
altcp_tls_mbedtls_opts.h
ssl_context
#define ssl_context
Definition:
compat-1.3.h:2309
flags
GLbitfield flags
Definition:
glext.h:7161
u8_t
uint8_t u8_t
Definition:
arch.h:125
opt.h
pbuf.h
ssl.h
SSL/TLS functions.
mbedtls_ssl_context
Definition:
ssl.h:1052
pbuf
Definition:
pbuf.h:186
drivers
network
tcpip
lwip
src
apps
altcp_tls
altcp_tls_mbedtls_structs.h
Generated on Thu Mar 13 2025 06:05:56 for ReactOS by
1.9.6