1
10
13
14
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
90
91
92
93
94
95
96
97
98
104
105
106
107
108
109
110
111
112
113
114
115
116
117
...
...
...
#define NX_SECURE_SOURCE_CODE
#include "nx_secure_tls.h"
NX_SECURE_CALLER_CHECKING_EXTERNS
...
...
UINT _nxe_secure_tls_session_create(NX_SECURE_TLS_SESSION *session_ptr,
const NX_SECURE_TLS_CRYPTO *cipher_table,
VOID *metadata_area,
ULONG metadata_size)
{
UINT status;
NX_SECURE_TLS_SESSION *created_tls_session;
ULONG created_count;
if ((session_ptr == NX_NULL) || (cipher_table == NX_NULL) || (metadata_area == NX_NULL))
{
return(NX_PTR_ERROR);
}if ((session_ptr == NX_NULL) || (cipher_table == NX_NULL) || (metadata_area == NX_NULL)) { ... }
created_tls_session = _nx_secure_tls_created_ptr;
created_count = _nx_secure_tls_created_count;
while (created_count--)
{
if (session_ptr == created_tls_session)
{
return(NX_PTR_ERROR);
}if (session_ptr == created_tls_session) { ... }
created_tls_session = created_tls_session -> nx_secure_tls_created_next;
}while (created_count--) { ... }
NX_THREADS_ONLY_CALLER_CHECKING
status = _nx_secure_tls_session_create(session_ptr, cipher_table, metadata_area, metadata_size);
return(status);
}{ ... }