TianoCore EDK2 master
Loading...
Searching...
No Matches
SslExtServNull.c
Go to the documentation of this file.
1
9#include <openssl/ocsp.h>
10#include "../ssl_local.h"
11#include "statem_local.h"
12#include "internal/cryptlib.h"
13
14int
15tls_parse_ctos_renegotiate (
16 SSL *s,
17 PACKET *pkt,
18 unsigned int context,
19 X509 *x,
20 size_t chainidx
21 )
22{
23 return -1;
24}
25
26int
27tls_parse_ctos_server_name (
28 SSL *s,
29 PACKET *pkt,
30 unsigned int context,
31 X509 *x,
32 size_t chainidx
33 )
34{
35 return 0;
36}
37
38int
39tls_parse_ctos_maxfragmentlen (
40 SSL *s,
41 PACKET *pkt,
42 unsigned int context,
43 X509 *x,
44 size_t chainidx
45 )
46{
47 return 0;
48}
49
50#ifndef OPENSSL_NO_SRP
51int
52tls_parse_ctos_srp (
53 SSL *s,
54 PACKET *pkt,
55 unsigned int context,
56 X509 *x,
57 size_t chainidx
58 )
59{
60 return 0;
61}
62
63#endif
64
65int
66tls_parse_ctos_ec_pt_formats (
67 SSL *s,
68 PACKET *pkt,
69 unsigned int context,
70 X509 *x,
71 size_t chainidx
72 )
73{
74 return 0;
75}
76
77int
78tls_parse_ctos_session_ticket (
79 SSL *s,
80 PACKET *pkt,
81 unsigned int context,
82 X509 *x,
83 size_t chainidx
84 )
85{
86 return 0;
87}
88
89int
90tls_parse_ctos_sig_algs_cert (
91 SSL *s,
92 PACKET *pkt,
93 ossl_unused unsigned int context,
94 ossl_unused X509 *x,
95 ossl_unused size_t chainidx
96 )
97{
98 return 0;
99}
100
101int
102tls_parse_ctos_sig_algs (
103 SSL *s,
104 PACKET *pkt,
105 unsigned int context,
106 X509 *x,
107 size_t chainidx
108 )
109{
110 return 0;
111}
112
113#ifndef OPENSSL_NO_OCSP
114int
115tls_parse_ctos_status_request (
116 SSL *s,
117 PACKET *pkt,
118 unsigned int context,
119 X509 *x,
120 size_t chainidx
121 )
122{
123 return 0;
124}
125
126#endif
127
128#ifndef OPENSSL_NO_NEXTPROTONEG
129int
130tls_parse_ctos_npn (
131 SSL *s,
132 PACKET *pkt,
133 unsigned int context,
134 X509 *x,
135 size_t chainidx
136 )
137{
138 return 0;
139}
140
141#endif
142
143/*
144 * Save the ALPN extension in a ClientHello.|pkt| holds the contents of the ALPN
145 * extension, not including type and length. Returns: 1 on success, 0 on error.
146 */
147int
148tls_parse_ctos_alpn (
149 SSL *s,
150 PACKET *pkt,
151 unsigned int context,
152 X509 *x,
153 size_t chainidx
154 )
155{
156 return 0;
157}
158
159#ifndef OPENSSL_NO_SRTP
160int
161tls_parse_ctos_use_srtp (
162 SSL *s,
163 PACKET *pkt,
164 unsigned int context,
165 X509 *x,
166 size_t chainidx
167 )
168{
169 return 0;
170}
171
172#endif
173
174int
175tls_parse_ctos_etm (
176 SSL *s,
177 PACKET *pkt,
178 unsigned int context,
179 X509 *x,
180 size_t chainidx
181 )
182{
183 return 0;
184}
185
186/*
187 * Process a psk_kex_modes extension received in the ClientHello. |pkt| contains
188 * the raw PACKET data for the extension. Returns 1 on success or 0 on failure.
189 */
190int
191tls_parse_ctos_psk_kex_modes (
192 SSL *s,
193 PACKET *pkt,
194 unsigned int context,
195 X509 *x,
196 size_t chainidx
197 )
198{
199 return 0;
200}
201
202/*
203 * Process a key_share extension received in the ClientHello. |pkt| contains
204 * the raw PACKET data for the extension. Returns 1 on success or 0 on failure.
205 */
206int
207tls_parse_ctos_key_share (
208 SSL *s,
209 PACKET *pkt,
210 unsigned int context,
211 X509 *x,
212 size_t chainidx
213 )
214{
215 return 0;
216}
217
218int
219tls_parse_ctos_cookie (
220 SSL *s,
221 PACKET *pkt,
222 unsigned int context,
223 X509 *x,
224 size_t chainidx
225 )
226{
227 return 0;
228}
229
230int
231tls_parse_ctos_supported_groups (
232 SSL *s,
233 PACKET *pkt,
234 unsigned int context,
235 X509 *x,
236 size_t chainidx
237 )
238{
239 return 0;
240}
241
242int
243tls_parse_ctos_ems (
244 SSL *s,
245 PACKET *pkt,
246 unsigned int context,
247 X509 *x,
248 size_t chainidx
249 )
250{
251 return 0;
252}
253
254int
255tls_parse_ctos_early_data (
256 SSL *s,
257 PACKET *pkt,
258 unsigned int context,
259 X509 *x,
260 size_t chainidx
261 )
262{
263 return 0;
264}
265
266int
267tls_parse_ctos_psk (
268 SSL *s,
269 PACKET *pkt,
270 unsigned int context,
271 X509 *x,
272 size_t chainidx
273 )
274{
275 return 0;
276}
277
278int
279tls_parse_ctos_post_handshake_auth (
280 SSL *s,
281 PACKET *pkt,
282 ossl_unused unsigned int context,
283 ossl_unused X509 *x,
284 ossl_unused size_t chainidx
285 )
286{
287 return 0;
288}
289
290/*
291 * Add the server's renegotiation binding
292 */
293EXT_RETURN
294tls_construct_stoc_renegotiate (
295 SSL *s,
296 WPACKET *pkt,
297 unsigned int context,
298 X509 *x,
299 size_t chainidx
300 )
301{
302 return EXT_RETURN_FAIL;
303}
304
305EXT_RETURN
306tls_construct_stoc_server_name (
307 SSL *s,
308 WPACKET *pkt,
309 unsigned int context,
310 X509 *x,
311 size_t chainidx
312 )
313{
314 return EXT_RETURN_FAIL;
315}
316
317/* Add/include the server's max fragment len extension into ServerHello */
318EXT_RETURN
319tls_construct_stoc_maxfragmentlen (
320 SSL *s,
321 WPACKET *pkt,
322 unsigned int context,
323 X509 *x,
324 size_t chainidx
325 )
326{
327 return EXT_RETURN_FAIL;
328}
329
330EXT_RETURN
331tls_construct_stoc_ec_pt_formats (
332 SSL *s,
333 WPACKET *pkt,
334 unsigned int context,
335 X509 *x,
336 size_t chainidx
337 )
338{
339 return EXT_RETURN_FAIL;
340}
341
342EXT_RETURN
343tls_construct_stoc_supported_groups (
344 SSL *s,
345 WPACKET *pkt,
346 unsigned int context,
347 X509 *x,
348 size_t chainidx
349 )
350{
351 return EXT_RETURN_FAIL;
352}
353
354EXT_RETURN
355tls_construct_stoc_session_ticket (
356 SSL *s,
357 WPACKET *pkt,
358 unsigned int context,
359 X509 *x,
360 size_t chainidx
361 )
362{
363 return EXT_RETURN_FAIL;
364}
365
366#ifndef OPENSSL_NO_OCSP
367EXT_RETURN
368tls_construct_stoc_status_request (
369 SSL *s,
370 WPACKET *pkt,
371 unsigned int context,
372 X509 *x,
373 size_t chainidx
374 )
375{
376 return EXT_RETURN_FAIL;
377}
378
379#endif
380
381#ifndef OPENSSL_NO_NEXTPROTONEG
382EXT_RETURN
383tls_construct_stoc_next_proto_neg (
384 SSL *s,
385 WPACKET *pkt,
386 unsigned int context,
387 X509 *x,
388 size_t chainidx
389 )
390{
391 return EXT_RETURN_FAIL;
392}
393
394#endif
395
396EXT_RETURN
397tls_construct_stoc_alpn (
398 SSL *s,
399 WPACKET *pkt,
400 unsigned int context,
401 X509 *x,
402 size_t chainidx
403 )
404{
405 return EXT_RETURN_FAIL;
406}
407
408#ifndef OPENSSL_NO_SRTP
409EXT_RETURN
410tls_construct_stoc_use_srtp (
411 SSL *s,
412 WPACKET *pkt,
413 unsigned int context,
414 X509 *x,
415 size_t chainidx
416 )
417{
418 return EXT_RETURN_FAIL;
419}
420
421#endif
422
423EXT_RETURN
424tls_construct_stoc_etm (
425 SSL *s,
426 WPACKET *pkt,
427 unsigned int context,
428 X509 *x,
429 size_t chainidx
430 )
431{
432 return EXT_RETURN_FAIL;
433}
434
435EXT_RETURN
436tls_construct_stoc_ems (
437 SSL *s,
438 WPACKET *pkt,
439 unsigned int context,
440 X509 *x,
441 size_t chainidx
442 )
443{
444 return EXT_RETURN_FAIL;
445}
446
447EXT_RETURN
448tls_construct_stoc_supported_versions (
449 SSL *s,
450 WPACKET *pkt,
451 unsigned int context,
452 X509 *x,
453 size_t chainidx
454 )
455{
456 return EXT_RETURN_FAIL;
457}
458
459EXT_RETURN
460tls_construct_stoc_key_share (
461 SSL *s,
462 WPACKET *pkt,
463 unsigned int context,
464 X509 *x,
465 size_t chainidx
466 )
467{
468 return EXT_RETURN_FAIL;
469}
470
471EXT_RETURN
472tls_construct_stoc_cookie (
473 SSL *s,
474 WPACKET *pkt,
475 unsigned int context,
476 X509 *x,
477 size_t chainidx
478 )
479{
480 return EXT_RETURN_FAIL;
481}
482
483EXT_RETURN
484tls_construct_stoc_cryptopro_bug (
485 SSL *s,
486 WPACKET *pkt,
487 unsigned int context,
488 X509 *x,
489 size_t chainidx
490 )
491{
492 return EXT_RETURN_FAIL;
493}
494
495EXT_RETURN
496tls_construct_stoc_early_data (
497 SSL *s,
498 WPACKET *pkt,
499 unsigned int context,
500 X509 *x,
501 size_t chainidx
502 )
503{
504 return EXT_RETURN_FAIL;
505}
506
507EXT_RETURN
508tls_construct_stoc_psk (
509 SSL *s,
510 WPACKET *pkt,
511 unsigned int context,
512 X509 *x,
513 size_t chainidx
514 )
515{
516 return EXT_RETURN_FAIL;
517}