summaryrefslogtreecommitdiffstats
path: root/CryptoPkg/Library/OpensslLib/OpensslStub/SslStatServNull.c
blob: 878f9e1a0b11ab22887e016203a9482e0e3e00bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
/** @file
  Null implementation of SslStatServ functions called by TlsLib.

  Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>
  SPDX-License-Identifier: BSD-2-Clause-Patent

**/

#include "../ssl_local.h"
#include "statem_local.h"
#include "internal/constant_time.h"
#include "internal/cryptlib.h"
#include <openssl/core_names.h>
#include <openssl/asn1t.h>

int
ossl_statem_server_read_transition (
  SSL  *s,
  int  mt
  )
{
  return 0;
}

/*
 * Should we send a CertificateRequest message?
 *
 * Valid return values are:
 *   1: Yes
 *   0: No
 */
int
send_certificate_request (
  SSL  *s
  )
{
  return 0;
}

/*
 * ossl_statem_server_write_transition() works out what handshake state to move
 * to next when the server is writing messages to be sent to the client.
 */
WRITE_TRAN
ossl_statem_server_write_transition (
  SSL  *s
  )
{
  return WRITE_TRAN_ERROR;
}

WORK_STATE
ossl_statem_server_pre_work (
  SSL         *s,
  WORK_STATE  wst
  )
{
  return WORK_ERROR;
}

/*
 * Perform any work that needs to be done after sending a message from the
 * server to the client.
 */
WORK_STATE
ossl_statem_server_post_work (
  SSL         *s,
  WORK_STATE  wst
  )
{
  return WORK_ERROR;
}

/*
 * Get the message construction function and message type for sending from the
 * server
 *
 * Valid return values are:
 *   1: Success
 *   0: Error
 */
int
ossl_statem_server_construct_message (
  SSL        *s,
  WPACKET    *pkt,
  confunc_f  *confunc,
  int        *mt
  )
{
  return 0;
}

/*
 * Returns the maximum allowed length for the current message that we are
 * reading. Excludes the message header.
 */
size_t
ossl_statem_server_max_message_size (
  SSL  *s
  )
{
  return 0;
}

/*
 * Process a message that the server has received from the client.
 */
MSG_PROCESS_RETURN
ossl_statem_server_process_message (
  SSL     *s,
  PACKET  *pkt
  )
{
  return MSG_PROCESS_ERROR;
}

/*
 * Perform any further processing required following the receipt of a message
 * from the client
 */
WORK_STATE
ossl_statem_server_post_process_message (
  SSL         *s,
  WORK_STATE  wst
  )
{
  return WORK_ERROR;
}

int
dtls_raw_hello_verify_request (
  WPACKET        *pkt,
  unsigned char  *cookie,
  size_t         cookie_len
  )
{
  return 0;
}

int
dtls_construct_hello_verify_request (
  SSL      *s,
  WPACKET  *pkt
  )
{
  return 0;
}

MSG_PROCESS_RETURN
tls_process_client_hello (
  SSL     *s,
  PACKET  *pkt
  )
{
  return MSG_PROCESS_ERROR;
}

/*
 * Call the alpn_select callback if needed. Upon success, returns 1.
 * Upon failure, returns 0.
 */
int
tls_handle_alpn (
  SSL  *s
  )
{
  return 0;
}

WORK_STATE
tls_post_process_client_hello (
  SSL         *s,
  WORK_STATE  wst
  )
{
  return WORK_ERROR;
}

int
tls_construct_server_hello (
  SSL      *s,
  WPACKET  *pkt
  )
{
  return 0;
}

int
tls_construct_server_done (
  SSL      *s,
  WPACKET  *pkt
  )
{
  return 0;
}

int
tls_construct_server_key_exchange (
  SSL      *s,
  WPACKET  *pkt
  )
{
  return 0;
}

int
tls_construct_certificate_request (
  SSL      *s,
  WPACKET  *pkt
  )
{
  return 0;
}

MSG_PROCESS_RETURN
tls_process_client_key_exchange (
  SSL     *s,
  PACKET  *pkt
  )
{
  return MSG_PROCESS_ERROR;
}

WORK_STATE
tls_post_process_client_key_exchange (
  SSL         *s,
  WORK_STATE  wst
  )
{
  return WORK_ERROR;
}

MSG_PROCESS_RETURN
tls_process_client_certificate (
  SSL     *s,
  PACKET  *pkt
  )
{
  return MSG_PROCESS_ERROR;
}

int
tls_construct_server_certificate (
  SSL      *s,
  WPACKET  *pkt
  )
{
  return 0;
}

int
tls_construct_new_session_ticket (
  SSL      *s,
  WPACKET  *pkt
  )
{
  return 0;
}

/*
 * In TLSv1.3 this is called from the extensions code, otherwise it is used to
 * create a separate message. Returns 1 on success or 0 on failure.
 */
int
tls_construct_cert_status_body (
  SSL      *s,
  WPACKET  *pkt
  )
{
  return 0;
}

int
tls_construct_cert_status (
  SSL      *s,
  WPACKET  *pkt
  )
{
  return 0;
}

#ifndef OPENSSL_NO_NEXTPROTONEG

/*
 * tls_process_next_proto reads a Next Protocol Negotiation handshake message.
 * It sets the next_proto member in s if found
 */
MSG_PROCESS_RETURN
tls_process_next_proto (
  SSL     *s,
  PACKET  *pkt
  )
{
  return MSG_PROCESS_ERROR;
}

#endif

MSG_PROCESS_RETURN
tls_process_end_of_early_data (
  SSL     *s,
  PACKET  *pkt
  )
{
  return MSG_PROCESS_ERROR;
}