TianoCore EDK2 master
Loading...
Searching...
No Matches
SslStatServNull.c
Go to the documentation of this file.
1
9#include "../ssl_local.h"
10#include "statem_local.h"
11#include "internal/constant_time.h"
12#include "internal/cryptlib.h"
13#include <openssl/core_names.h>
14#include <openssl/asn1t.h>
15
16int
17ossl_statem_server_read_transition (
18 SSL *s,
19 int mt
20 )
21{
22 return 0;
23}
24
25/*
26 * Should we send a CertificateRequest message?
27 *
28 * Valid return values are:
29 * 1: Yes
30 * 0: No
31 */
32int
33send_certificate_request (
34 SSL *s
35 )
36{
37 return 0;
38}
39
40/*
41 * ossl_statem_server_write_transition() works out what handshake state to move
42 * to next when the server is writing messages to be sent to the client.
43 */
44WRITE_TRAN
45ossl_statem_server_write_transition (
46 SSL *s
47 )
48{
49 return WRITE_TRAN_ERROR;
50}
51
52WORK_STATE
53ossl_statem_server_pre_work (
54 SSL *s,
55 WORK_STATE wst
56 )
57{
58 return WORK_ERROR;
59}
60
61/*
62 * Perform any work that needs to be done after sending a message from the
63 * server to the client.
64 */
65WORK_STATE
66ossl_statem_server_post_work (
67 SSL *s,
68 WORK_STATE wst
69 )
70{
71 return WORK_ERROR;
72}
73
74/*
75 * Get the message construction function and message type for sending from the
76 * server
77 *
78 * Valid return values are:
79 * 1: Success
80 * 0: Error
81 */
82int
83ossl_statem_server_construct_message (
84 SSL *s,
85 WPACKET *pkt,
86 confunc_f *confunc,
87 int *mt
88 )
89{
90 return 0;
91}
92
93/*
94 * Returns the maximum allowed length for the current message that we are
95 * reading. Excludes the message header.
96 */
97size_t
98ossl_statem_server_max_message_size (
99 SSL *s
100 )
101{
102 return 0;
103}
104
105/*
106 * Process a message that the server has received from the client.
107 */
108MSG_PROCESS_RETURN
109ossl_statem_server_process_message (
110 SSL *s,
111 PACKET *pkt
112 )
113{
114 return MSG_PROCESS_ERROR;
115}
116
117/*
118 * Perform any further processing required following the receipt of a message
119 * from the client
120 */
121WORK_STATE
122ossl_statem_server_post_process_message (
123 SSL *s,
124 WORK_STATE wst
125 )
126{
127 return WORK_ERROR;
128}
129
130int
131dtls_raw_hello_verify_request (
132 WPACKET *pkt,
133 unsigned char *cookie,
134 size_t cookie_len
135 )
136{
137 return 0;
138}
139
140int
141dtls_construct_hello_verify_request (
142 SSL *s,
143 WPACKET *pkt
144 )
145{
146 return 0;
147}
148
149MSG_PROCESS_RETURN
150tls_process_client_hello (
151 SSL *s,
152 PACKET *pkt
153 )
154{
155 return MSG_PROCESS_ERROR;
156}
157
158/*
159 * Call the alpn_select callback if needed. Upon success, returns 1.
160 * Upon failure, returns 0.
161 */
162int
163tls_handle_alpn (
164 SSL *s
165 )
166{
167 return 0;
168}
169
170WORK_STATE
171tls_post_process_client_hello (
172 SSL *s,
173 WORK_STATE wst
174 )
175{
176 return WORK_ERROR;
177}
178
179int
180tls_construct_server_hello (
181 SSL *s,
182 WPACKET *pkt
183 )
184{
185 return 0;
186}
187
188int
189tls_construct_server_done (
190 SSL *s,
191 WPACKET *pkt
192 )
193{
194 return 0;
195}
196
197int
198tls_construct_server_key_exchange (
199 SSL *s,
200 WPACKET *pkt
201 )
202{
203 return 0;
204}
205
206int
207tls_construct_certificate_request (
208 SSL *s,
209 WPACKET *pkt
210 )
211{
212 return 0;
213}
214
215MSG_PROCESS_RETURN
216tls_process_client_key_exchange (
217 SSL *s,
218 PACKET *pkt
219 )
220{
221 return MSG_PROCESS_ERROR;
222}
223
224WORK_STATE
225tls_post_process_client_key_exchange (
226 SSL *s,
227 WORK_STATE wst
228 )
229{
230 return WORK_ERROR;
231}
232
233MSG_PROCESS_RETURN
234tls_process_client_certificate (
235 SSL *s,
236 PACKET *pkt
237 )
238{
239 return MSG_PROCESS_ERROR;
240}
241
242int
243tls_construct_server_certificate (
244 SSL *s,
245 WPACKET *pkt
246 )
247{
248 return 0;
249}
250
251int
252tls_construct_new_session_ticket (
253 SSL *s,
254 WPACKET *pkt
255 )
256{
257 return 0;
258}
259
260/*
261 * In TLSv1.3 this is called from the extensions code, otherwise it is used to
262 * create a separate message. Returns 1 on success or 0 on failure.
263 */
264int
265tls_construct_cert_status_body (
266 SSL *s,
267 WPACKET *pkt
268 )
269{
270 return 0;
271}
272
273int
274tls_construct_cert_status (
275 SSL *s,
276 WPACKET *pkt
277 )
278{
279 return 0;
280}
281
282#ifndef OPENSSL_NO_NEXTPROTONEG
283
284/*
285 * tls_process_next_proto reads a Next Protocol Negotiation handshake message.
286 * It sets the next_proto member in s if found
287 */
288MSG_PROCESS_RETURN
289tls_process_next_proto (
290 SSL *s,
291 PACKET *pkt
292 )
293{
294 return MSG_PROCESS_ERROR;
295}
296
297#endif
298
299MSG_PROCESS_RETURN
300tls_process_end_of_early_data (
301 SSL *s,
302 PACKET *pkt
303 )
304{
305 return MSG_PROCESS_ERROR;
306}