VirtualBox

source: vbox/trunk/src/libs/openssl-3.1.7/ssl/statem/statem_local.h@ 106165

最後變更 在這個檔案從106165是 104078,由 vboxsync 提交於 8 月 前

openssl-3.1.5: Applied and adjusted our OpenSSL changes to 3.1.4. bugref:10638

檔案大小: 22.1 KB
 
1/*
2 * Copyright 2015-2022 The OpenSSL Project Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License 2.0 (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
8 */
9
10/*****************************************************************************
11 * *
12 * The following definitions are PRIVATE to the state machine. They should *
13 * NOT be used outside of the state machine. *
14 * *
15 *****************************************************************************/
16
17/* Max message length definitions */
18
19/* The spec allows for a longer length than this, but we limit it */
20#define HELLO_VERIFY_REQUEST_MAX_LENGTH 258
21#define END_OF_EARLY_DATA_MAX_LENGTH 0
22#define HELLO_RETRY_REQUEST_MAX_LENGTH 20000
23#define ENCRYPTED_EXTENSIONS_MAX_LENGTH 20000
24#define SESSION_TICKET_MAX_LENGTH_TLS13 131338
25#define SESSION_TICKET_MAX_LENGTH_TLS12 65541
26#define SERVER_KEY_EXCH_MAX_LENGTH 102400
27#define SERVER_HELLO_DONE_MAX_LENGTH 0
28#define KEY_UPDATE_MAX_LENGTH 1
29#define CCS_MAX_LENGTH 1
30
31/* Max ServerHello size permitted by RFC 8446 */
32#define SERVER_HELLO_MAX_LENGTH 65607
33
34/* Max should actually be 36 but we are generous */
35#define FINISHED_MAX_LENGTH 64
36
37/* Dummy message type */
38#define SSL3_MT_DUMMY -1
39
40/* Invalid extension ID for non-supported extensions */
41#define TLSEXT_TYPE_invalid 0x10000
42#define TLSEXT_TYPE_out_of_range 0x10001
43unsigned int ossl_get_extension_type(size_t idx);
44
45extern const unsigned char hrrrandom[];
46
47/* Message processing return codes */
48typedef enum {
49 /* Something bad happened */
50 MSG_PROCESS_ERROR,
51 /* We've finished reading - swap to writing */
52 MSG_PROCESS_FINISHED_READING,
53 /*
54 * We've completed the main processing of this message but there is some
55 * post processing to be done.
56 */
57 MSG_PROCESS_CONTINUE_PROCESSING,
58 /* We've finished this message - read the next message */
59 MSG_PROCESS_CONTINUE_READING
60} MSG_PROCESS_RETURN;
61
62typedef int (*confunc_f) (SSL *s, WPACKET *pkt);
63
64int ssl3_take_mac(SSL *s);
65int check_in_list(SSL *s, uint16_t group_id, const uint16_t *groups,
66 size_t num_groups, int checkallow);
67int create_synthetic_message_hash(SSL *s, const unsigned char *hashval,
68 size_t hashlen, const unsigned char *hrr,
69 size_t hrrlen);
70int parse_ca_names(SSL *s, PACKET *pkt);
71const STACK_OF(X509_NAME) *get_ca_names(SSL *s);
72int construct_ca_names(SSL *s, const STACK_OF(X509_NAME) *ca_sk, WPACKET *pkt);
73size_t construct_key_exchange_tbs(SSL *s, unsigned char **ptbs,
74 const void *param, size_t paramlen);
75
76/*
77 * TLS/DTLS client state machine functions
78 */
79int ossl_statem_client_read_transition(SSL *s, int mt);
80WRITE_TRAN ossl_statem_client_write_transition(SSL *s);
81WORK_STATE ossl_statem_client_pre_work(SSL *s, WORK_STATE wst);
82WORK_STATE ossl_statem_client_post_work(SSL *s, WORK_STATE wst);
83int ossl_statem_client_construct_message(SSL *s, WPACKET *pkt,
84 confunc_f *confunc, int *mt);
85size_t ossl_statem_client_max_message_size(SSL *s);
86MSG_PROCESS_RETURN ossl_statem_client_process_message(SSL *s, PACKET *pkt);
87WORK_STATE ossl_statem_client_post_process_message(SSL *s, WORK_STATE wst);
88
89/*
90 * TLS/DTLS server state machine functions
91 */
92int ossl_statem_server_read_transition(SSL *s, int mt);
93WRITE_TRAN ossl_statem_server_write_transition(SSL *s);
94WORK_STATE ossl_statem_server_pre_work(SSL *s, WORK_STATE wst);
95WORK_STATE ossl_statem_server_post_work(SSL *s, WORK_STATE wst);
96int ossl_statem_server_construct_message(SSL *s, WPACKET *pkt,
97 confunc_f *confunc,int *mt);
98size_t ossl_statem_server_max_message_size(SSL *s);
99MSG_PROCESS_RETURN ossl_statem_server_process_message(SSL *s, PACKET *pkt);
100WORK_STATE ossl_statem_server_post_process_message(SSL *s, WORK_STATE wst);
101
102/* Functions for getting new message data */
103__owur int tls_get_message_header(SSL *s, int *mt);
104__owur int tls_get_message_body(SSL *s, size_t *len);
105__owur int dtls_get_message(SSL *s, int *mt);
106__owur int dtls_get_message_body(SSL *s, size_t *len);
107
108/* Message construction and processing functions */
109__owur int tls_process_initial_server_flight(SSL *s);
110__owur MSG_PROCESS_RETURN tls_process_change_cipher_spec(SSL *s, PACKET *pkt);
111__owur MSG_PROCESS_RETURN tls_process_finished(SSL *s, PACKET *pkt);
112__owur int tls_construct_change_cipher_spec(SSL *s, WPACKET *pkt);
113__owur int dtls_construct_change_cipher_spec(SSL *s, WPACKET *pkt);
114
115__owur int tls_construct_finished(SSL *s, WPACKET *pkt);
116__owur int tls_construct_key_update(SSL *s, WPACKET *pkt);
117__owur MSG_PROCESS_RETURN tls_process_key_update(SSL *s, PACKET *pkt);
118__owur WORK_STATE tls_finish_handshake(SSL *s, WORK_STATE wst, int clearbufs,
119 int stop);
120__owur WORK_STATE dtls_wait_for_dry(SSL *s);
121
122/* some client-only functions */
123__owur int tls_construct_client_hello(SSL *s, WPACKET *pkt);
124__owur MSG_PROCESS_RETURN tls_process_server_hello(SSL *s, PACKET *pkt);
125__owur MSG_PROCESS_RETURN tls_process_certificate_request(SSL *s, PACKET *pkt);
126__owur MSG_PROCESS_RETURN tls_process_new_session_ticket(SSL *s, PACKET *pkt);
127__owur int tls_process_cert_status_body(SSL *s, PACKET *pkt);
128__owur MSG_PROCESS_RETURN tls_process_cert_status(SSL *s, PACKET *pkt);
129__owur MSG_PROCESS_RETURN tls_process_server_done(SSL *s, PACKET *pkt);
130__owur int tls_construct_cert_verify(SSL *s, WPACKET *pkt);
131__owur WORK_STATE tls_prepare_client_certificate(SSL *s, WORK_STATE wst);
132__owur int tls_construct_client_certificate(SSL *s, WPACKET *pkt);
133__owur int ssl_do_client_cert_cb(SSL *s, X509 **px509, EVP_PKEY **ppkey);
134__owur int tls_construct_client_key_exchange(SSL *s, WPACKET *pkt);
135__owur int tls_client_key_exchange_post_work(SSL *s);
136__owur int tls_construct_cert_status_body(SSL *s, WPACKET *pkt);
137__owur int tls_construct_cert_status(SSL *s, WPACKET *pkt);
138__owur MSG_PROCESS_RETURN tls_process_key_exchange(SSL *s, PACKET *pkt);
139__owur MSG_PROCESS_RETURN tls_process_server_certificate(SSL *s, PACKET *pkt);
140__owur WORK_STATE tls_post_process_server_certificate(SSL *s, WORK_STATE wst);
141__owur int ssl3_check_cert_and_algorithm(SSL *s);
142#ifndef OPENSSL_NO_NEXTPROTONEG
143__owur int tls_construct_next_proto(SSL *s, WPACKET *pkt);
144#endif
145__owur MSG_PROCESS_RETURN tls_process_hello_req(SSL *s, PACKET *pkt);
146__owur MSG_PROCESS_RETURN dtls_process_hello_verify(SSL *s, PACKET *pkt);
147__owur int tls_construct_end_of_early_data(SSL *s, WPACKET *pkt);
148
149/* some server-only functions */
150__owur MSG_PROCESS_RETURN tls_process_client_hello(SSL *s, PACKET *pkt);
151__owur WORK_STATE tls_post_process_client_hello(SSL *s, WORK_STATE wst);
152__owur int tls_construct_server_hello(SSL *s, WPACKET *pkt);
153__owur int dtls_construct_hello_verify_request(SSL *s, WPACKET *pkt);
154__owur int tls_construct_server_certificate(SSL *s, WPACKET *pkt);
155__owur int tls_construct_server_key_exchange(SSL *s, WPACKET *pkt);
156__owur int tls_construct_certificate_request(SSL *s, WPACKET *pkt);
157__owur int tls_construct_server_done(SSL *s, WPACKET *pkt);
158__owur MSG_PROCESS_RETURN tls_process_client_certificate(SSL *s, PACKET *pkt);
159__owur MSG_PROCESS_RETURN tls_process_client_key_exchange(SSL *s, PACKET *pkt);
160__owur WORK_STATE tls_post_process_client_key_exchange(SSL *s, WORK_STATE wst);
161__owur MSG_PROCESS_RETURN tls_process_cert_verify(SSL *s, PACKET *pkt);
162#ifndef OPENSSL_NO_NEXTPROTONEG
163__owur MSG_PROCESS_RETURN tls_process_next_proto(SSL *s, PACKET *pkt);
164#endif
165__owur int tls_construct_new_session_ticket(SSL *s, WPACKET *pkt);
166MSG_PROCESS_RETURN tls_process_end_of_early_data(SSL *s, PACKET *pkt);
167
168#ifndef OPENSSL_NO_GOST
169/* These functions are used in GOST18 CKE, both for client and server */
170int ossl_gost18_cke_cipher_nid(const SSL *s);
171int ossl_gost_ukm(const SSL *s, unsigned char *dgst_buf);
172#endif
173
174/* Extension processing */
175
176typedef enum ext_return_en {
177 EXT_RETURN_FAIL,
178 EXT_RETURN_SENT,
179 EXT_RETURN_NOT_SENT
180} EXT_RETURN;
181
182__owur int tls_validate_all_contexts(SSL *s, unsigned int thisctx,
183 RAW_EXTENSION *exts);
184__owur int extension_is_relevant(SSL *s, unsigned int extctx,
185 unsigned int thisctx);
186__owur int tls_collect_extensions(SSL *s, PACKET *packet, unsigned int context,
187 RAW_EXTENSION **res, size_t *len, int init);
188__owur int tls_parse_extension(SSL *s, TLSEXT_INDEX idx, int context,
189 RAW_EXTENSION *exts, X509 *x, size_t chainidx);
190__owur int tls_parse_all_extensions(SSL *s, int context, RAW_EXTENSION *exts,
191 X509 *x, size_t chainidx, int fin);
192__owur int should_add_extension(SSL *s, unsigned int extctx,
193 unsigned int thisctx, int max_version);
194__owur int tls_construct_extensions(SSL *s, WPACKET *pkt, unsigned int context,
195 X509 *x, size_t chainidx);
196
197__owur int tls_psk_do_binder(SSL *s, const EVP_MD *md,
198 const unsigned char *msgstart,
199 size_t binderoffset, const unsigned char *binderin,
200 unsigned char *binderout,
201 SSL_SESSION *sess, int sign, int external);
202
203/* Server Extension processing */
204int tls_parse_ctos_renegotiate(SSL *s, PACKET *pkt, unsigned int context,
205 X509 *x, size_t chainidx);
206int tls_parse_ctos_server_name(SSL *s, PACKET *pkt, unsigned int context,
207 X509 *x, size_t chainidx);
208int tls_parse_ctos_maxfragmentlen(SSL *s, PACKET *pkt, unsigned int context,
209 X509 *x, size_t chainidx);
210#ifndef OPENSSL_NO_SRP
211int tls_parse_ctos_srp(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
212 size_t chainidx);
213#endif
214int tls_parse_ctos_early_data(SSL *s, PACKET *pkt, unsigned int context,
215 X509 *x, size_t chainidx);
216int tls_parse_ctos_ec_pt_formats(SSL *s, PACKET *pkt, unsigned int context,
217 X509 *x, size_t chainidx);
218int tls_parse_ctos_supported_groups(SSL *s, PACKET *pkt, unsigned int context,
219 X509 *x, size_t chainidxl);
220int tls_parse_ctos_session_ticket(SSL *s, PACKET *pkt, unsigned int context,
221 X509 *x, size_t chainidx);
222int tls_parse_ctos_sig_algs_cert(SSL *s, PACKET *pkt, unsigned int context,
223 X509 *x, size_t chainidx);
224int tls_parse_ctos_sig_algs(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
225 size_t chainidx);
226#ifndef OPENSSL_NO_OCSP
227int tls_parse_ctos_status_request(SSL *s, PACKET *pkt, unsigned int context,
228 X509 *x, size_t chainidx);
229#endif
230#ifndef OPENSSL_NO_NEXTPROTONEG
231int tls_parse_ctos_npn(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
232 size_t chainidx);
233#endif
234int tls_parse_ctos_alpn(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
235 size_t chainidx);
236#ifndef OPENSSL_NO_SRTP
237int tls_parse_ctos_use_srtp(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
238 size_t chainidx);
239#endif
240int tls_parse_ctos_etm(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
241 size_t chainidx);
242int tls_parse_ctos_key_share(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
243 size_t chainidx);
244int tls_parse_ctos_cookie(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
245 size_t chainidx);
246int tls_parse_ctos_ems(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
247 size_t chainidx);
248int tls_parse_ctos_psk_kex_modes(SSL *s, PACKET *pkt, unsigned int context,
249 X509 *x, size_t chainidx);
250int tls_parse_ctos_psk(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
251 size_t chainidx);
252int tls_parse_ctos_post_handshake_auth(SSL *, PACKET *pkt, unsigned int context,
253 X509 *x, size_t chainidx);
254
255EXT_RETURN tls_construct_stoc_renegotiate(SSL *s, WPACKET *pkt,
256 unsigned int context, X509 *x,
257 size_t chainidx);
258EXT_RETURN tls_construct_stoc_server_name(SSL *s, WPACKET *pkt,
259 unsigned int context, X509 *x,
260 size_t chainidx);
261EXT_RETURN tls_construct_stoc_early_data(SSL *s, WPACKET *pkt,
262 unsigned int context, X509 *x,
263 size_t chainidx);
264EXT_RETURN tls_construct_stoc_maxfragmentlen(SSL *s, WPACKET *pkt,
265 unsigned int context, X509 *x,
266 size_t chainidx);
267EXT_RETURN tls_construct_stoc_ec_pt_formats(SSL *s, WPACKET *pkt,
268 unsigned int context, X509 *x,
269 size_t chainidx);
270EXT_RETURN tls_construct_stoc_supported_groups(SSL *s, WPACKET *pkt,
271 unsigned int context, X509 *x,
272 size_t chainidx);
273EXT_RETURN tls_construct_stoc_session_ticket(SSL *s, WPACKET *pkt,
274 unsigned int context, X509 *x,
275 size_t chainidx);
276#ifndef OPENSSL_NO_OCSP
277EXT_RETURN tls_construct_stoc_status_request(SSL *s, WPACKET *pkt,
278 unsigned int context, X509 *x,
279 size_t chainidx);
280#endif
281#ifndef OPENSSL_NO_NEXTPROTONEG
282EXT_RETURN tls_construct_stoc_next_proto_neg(SSL *s, WPACKET *pkt,
283 unsigned int context, X509 *x,
284 size_t chainidx);
285#endif
286EXT_RETURN tls_construct_stoc_alpn(SSL *s, WPACKET *pkt, unsigned int context,
287 X509 *x, size_t chainidx);
288#ifndef OPENSSL_NO_SRTP
289EXT_RETURN tls_construct_stoc_use_srtp(SSL *s, WPACKET *pkt, unsigned int context,
290 X509 *x, size_t chainidx);
291#endif
292EXT_RETURN tls_construct_stoc_etm(SSL *s, WPACKET *pkt, unsigned int context,
293 X509 *x, size_t chainidx);
294EXT_RETURN tls_construct_stoc_ems(SSL *s, WPACKET *pkt, unsigned int context,
295 X509 *x, size_t chainidx);
296EXT_RETURN tls_construct_stoc_supported_versions(SSL *s, WPACKET *pkt,
297 unsigned int context, X509 *x,
298 size_t chainidx);
299EXT_RETURN tls_construct_stoc_key_share(SSL *s, WPACKET *pkt,
300 unsigned int context, X509 *x,
301 size_t chainidx);
302EXT_RETURN tls_construct_stoc_cookie(SSL *s, WPACKET *pkt, unsigned int context,
303 X509 *x, size_t chainidx);
304/*
305 * Not in public headers as this is not an official extension. Only used when
306 * SSL_OP_CRYPTOPRO_TLSEXT_BUG is set.
307 */
308#define TLSEXT_TYPE_cryptopro_bug 0xfde8
309EXT_RETURN tls_construct_stoc_cryptopro_bug(SSL *s, WPACKET *pkt,
310 unsigned int context, X509 *x,
311 size_t chainidx);
312EXT_RETURN tls_construct_stoc_psk(SSL *s, WPACKET *pkt, unsigned int context,
313 X509 *x, size_t chainidx);
314
315/* Client Extension processing */
316EXT_RETURN tls_construct_ctos_renegotiate(SSL *s, WPACKET *pkt, unsigned int context,
317 X509 *x, size_t chainidx);
318EXT_RETURN tls_construct_ctos_server_name(SSL *s, WPACKET *pkt, unsigned int context,
319 X509 *x, size_t chainidx);
320EXT_RETURN tls_construct_ctos_maxfragmentlen(SSL *s, WPACKET *pkt, unsigned int context,
321 X509 *x, size_t chainidx);
322#ifndef OPENSSL_NO_SRP
323EXT_RETURN tls_construct_ctos_srp(SSL *s, WPACKET *pkt, unsigned int context, X509 *x,
324 size_t chainidx);
325#endif
326EXT_RETURN tls_construct_ctos_ec_pt_formats(SSL *s, WPACKET *pkt,
327 unsigned int context, X509 *x,
328 size_t chainidx);
329EXT_RETURN tls_construct_ctos_supported_groups(SSL *s, WPACKET *pkt,
330 unsigned int context, X509 *x,
331 size_t chainidx);
332
333EXT_RETURN tls_construct_ctos_early_data(SSL *s, WPACKET *pkt,
334 unsigned int context, X509 *x,
335 size_t chainidx);
336EXT_RETURN tls_construct_ctos_session_ticket(SSL *s, WPACKET *pkt,
337 unsigned int context, X509 *x,
338 size_t chainidx);
339EXT_RETURN tls_construct_ctos_sig_algs(SSL *s, WPACKET *pkt,
340 unsigned int context, X509 *x,
341 size_t chainidx);
342#ifndef OPENSSL_NO_OCSP
343EXT_RETURN tls_construct_ctos_status_request(SSL *s, WPACKET *pkt,
344 unsigned int context, X509 *x,
345 size_t chainidx);
346#endif
347#ifndef OPENSSL_NO_NEXTPROTONEG
348EXT_RETURN tls_construct_ctos_npn(SSL *s, WPACKET *pkt, unsigned int context,
349 X509 *x, size_t chainidx);
350#endif
351EXT_RETURN tls_construct_ctos_alpn(SSL *s, WPACKET *pkt, unsigned int context,
352 X509 *x, size_t chainidx);
353#ifndef OPENSSL_NO_SRTP
354EXT_RETURN tls_construct_ctos_use_srtp(SSL *s, WPACKET *pkt, unsigned int context,
355 X509 *x, size_t chainidx);
356#endif
357EXT_RETURN tls_construct_ctos_etm(SSL *s, WPACKET *pkt, unsigned int context,
358 X509 *x, size_t chainidx);
359#ifndef OPENSSL_NO_CT
360EXT_RETURN tls_construct_ctos_sct(SSL *s, WPACKET *pkt, unsigned int context,
361 X509 *x, size_t chainidx);
362#endif
363EXT_RETURN tls_construct_ctos_ems(SSL *s, WPACKET *pkt, unsigned int context,
364 X509 *x, size_t chainidx);
365EXT_RETURN tls_construct_ctos_supported_versions(SSL *s, WPACKET *pkt,
366 unsigned int context, X509 *x,
367 size_t chainidx);
368EXT_RETURN tls_construct_ctos_key_share(SSL *s, WPACKET *pkt,
369 unsigned int context, X509 *x,
370 size_t chainidx);
371EXT_RETURN tls_construct_ctos_psk_kex_modes(SSL *s, WPACKET *pkt,
372 unsigned int context, X509 *x,
373 size_t chainidx);
374EXT_RETURN tls_construct_ctos_cookie(SSL *s, WPACKET *pkt, unsigned int context,
375 X509 *x, size_t chainidx);
376EXT_RETURN tls_construct_ctos_padding(SSL *s, WPACKET *pkt,
377 unsigned int context, X509 *x,
378 size_t chainidx);
379EXT_RETURN tls_construct_ctos_psk(SSL *s, WPACKET *pkt, unsigned int context,
380 X509 *x, size_t chainidx);
381EXT_RETURN tls_construct_ctos_post_handshake_auth(SSL *s, WPACKET *pkt, unsigned int context,
382 X509 *x, size_t chainidx);
383
384int tls_parse_stoc_renegotiate(SSL *s, PACKET *pkt, unsigned int context,
385 X509 *x, size_t chainidx);
386int tls_parse_stoc_server_name(SSL *s, PACKET *pkt, unsigned int context,
387 X509 *x, size_t chainidx);
388int tls_parse_stoc_early_data(SSL *s, PACKET *pkt, unsigned int context,
389 X509 *x, size_t chainidx);
390int tls_parse_stoc_maxfragmentlen(SSL *s, PACKET *pkt, unsigned int context,
391 X509 *x, size_t chainidx);
392int tls_parse_stoc_ec_pt_formats(SSL *s, PACKET *pkt, unsigned int context,
393 X509 *x, size_t chainidx);
394int tls_parse_stoc_session_ticket(SSL *s, PACKET *pkt, unsigned int context,
395 X509 *x, size_t chainidx);
396#ifndef OPENSSL_NO_OCSP
397int tls_parse_stoc_status_request(SSL *s, PACKET *pkt, unsigned int context,
398 X509 *x, size_t chainidx);
399#endif
400#ifndef OPENSSL_NO_CT
401int tls_parse_stoc_sct(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
402 size_t chainidx);
403#endif
404#ifndef OPENSSL_NO_NEXTPROTONEG
405int tls_parse_stoc_npn(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
406 size_t chainidx);
407#endif
408int tls_parse_stoc_alpn(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
409 size_t chainidx);
410#ifndef OPENSSL_NO_SRTP
411int tls_parse_stoc_use_srtp(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
412 size_t chainidx);
413#endif
414int tls_parse_stoc_etm(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
415 size_t chainidx);
416int tls_parse_stoc_ems(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
417 size_t chainidx);
418int tls_parse_stoc_supported_versions(SSL *s, PACKET *pkt, unsigned int context,
419 X509 *x, size_t chainidx);
420int tls_parse_stoc_key_share(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
421 size_t chainidx);
422int tls_parse_stoc_cookie(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
423 size_t chainidx);
424int tls_parse_stoc_psk(SSL *s, PACKET *pkt, unsigned int context, X509 *x,
425 size_t chainidx);
426
427int tls_handle_alpn(SSL *s);
428
429int tls13_save_handshake_digest_for_pha(SSL *s);
430int tls13_restore_handshake_digest_for_pha(SSL *s);
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette