summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_tlsext.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/ssl_tlsext.h')
-rw-r--r--src/lib/libssl/ssl_tlsext.h126
1 files changed, 2 insertions, 124 deletions
diff --git a/src/lib/libssl/ssl_tlsext.h b/src/lib/libssl/ssl_tlsext.h
index 393ee5d90d..7a41c8095d 100644
--- a/src/lib/libssl/ssl_tlsext.h
+++ b/src/lib/libssl/ssl_tlsext.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_tlsext.h,v 1.31 2022/07/20 13:35:05 tb Exp $ */ 1/* $OpenBSD: ssl_tlsext.h,v 1.32 2022/08/04 09:27:36 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2016, 2017 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2016, 2017 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> 4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
@@ -32,138 +32,16 @@
32__BEGIN_HIDDEN_DECLS 32__BEGIN_HIDDEN_DECLS
33 33
34int tlsext_alpn_check_format(CBS *cbs); 34int tlsext_alpn_check_format(CBS *cbs);
35int tlsext_alpn_client_needs(SSL *s, uint16_t msg_type);
36int tlsext_alpn_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
37int tlsext_alpn_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
38int tlsext_alpn_server_needs(SSL *s, uint16_t msg_type);
39int tlsext_alpn_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
40int tlsext_alpn_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
41
42int tlsext_ri_client_needs(SSL *s, uint16_t msg_type);
43int tlsext_ri_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
44int tlsext_ri_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
45int tlsext_ri_server_needs(SSL *s, uint16_t msg_type);
46int tlsext_ri_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
47int tlsext_ri_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
48
49int tlsext_sigalgs_client_needs(SSL *s, uint16_t msg_type);
50int tlsext_sigalgs_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
51int tlsext_sigalgs_client_parse(SSL *s, uint16_t msg_type, CBS *cbs,
52 int *alert);
53int tlsext_sigalgs_server_needs(SSL *s, uint16_t msg_type);
54int tlsext_sigalgs_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
55int tlsext_sigalgs_server_parse(SSL *s, uint16_t msg_type, CBS *cbs,
56 int *alert);
57
58int tlsext_sni_client_needs(SSL *s, uint16_t msg_type);
59int tlsext_sni_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
60int tlsext_sni_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
61int tlsext_sni_server_needs(SSL *s, uint16_t msg_type);
62int tlsext_sni_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
63int tlsext_sni_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
64int tlsext_sni_is_valid_hostname(CBS *cbs, int *is_ip); 35int tlsext_sni_is_valid_hostname(CBS *cbs, int *is_ip);
65 36
66int tlsext_supportedgroups_client_needs(SSL *s, uint16_t msg_type);
67int tlsext_supportedgroups_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
68int tlsext_supportedgroups_client_parse(SSL *s, uint16_t msg_type, CBS *cbs,
69 int *alert);
70int tlsext_supportedgroups_server_needs(SSL *s, uint16_t msg_type);
71int tlsext_supportedgroups_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
72int tlsext_supportedgroups_server_parse(SSL *s, uint16_t msg_type, CBS *cbs,
73 int *alert);
74
75int tlsext_ecpf_client_needs(SSL *s, uint16_t msg_type);
76int tlsext_ecpf_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
77int tlsext_ecpf_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
78int tlsext_ecpf_server_needs(SSL *s, uint16_t msg_type);
79int tlsext_ecpf_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
80int tlsext_ecpf_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
81
82int tlsext_ocsp_client_needs(SSL *s, uint16_t msg_type);
83int tlsext_ocsp_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
84int tlsext_ocsp_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
85int tlsext_ocsp_server_needs(SSL *s, uint16_t msg_type);
86int tlsext_ocsp_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
87int tlsext_ocsp_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
88
89int tlsext_sessionticket_client_needs(SSL *s, uint16_t msg_type);
90int tlsext_sessionticket_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
91int tlsext_sessionticket_client_parse(SSL *s, uint16_t msg_type, CBS *cbs,
92 int *alert);
93int tlsext_sessionticket_server_needs(SSL *s, uint16_t msg_type);
94int tlsext_sessionticket_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
95int tlsext_sessionticket_server_parse(SSL *s, uint16_t msg_type, CBS *cbs,
96 int *alert);
97
98int tlsext_versions_client_needs(SSL *s, uint16_t msg_type);
99int tlsext_versions_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
100int tlsext_versions_client_parse(SSL *s, uint16_t msg_type, CBS *cbs,
101 int *alert);
102int tlsext_versions_server_needs(SSL *s, uint16_t msg_type);
103int tlsext_versions_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
104int tlsext_versions_server_parse(SSL *s, uint16_t msg_type, CBS *cbs,
105 int *alert);
106
107int tlsext_keyshare_client_needs(SSL *s, uint16_t msg_type);
108int tlsext_keyshare_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
109int tlsext_keyshare_client_parse(SSL *s, uint16_t msg_type, CBS *cbs,
110 int *alert);
111int tlsext_keyshare_server_needs(SSL *s, uint16_t msg_type);
112int tlsext_keyshare_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
113int tlsext_keyshare_server_parse(SSL *s, uint16_t msg_type, CBS *cbs,
114 int *alert);
115
116int tlsext_cookie_client_needs(SSL *s, uint16_t msg_type);
117int tlsext_cookie_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
118int tlsext_cookie_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
119int tlsext_cookie_server_needs(SSL *s, uint16_t msg_type);
120int tlsext_cookie_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
121int tlsext_cookie_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
122
123int tlsext_psk_kex_modes_client_needs(SSL *s, uint16_t msg_type);
124int tlsext_psk_kex_modes_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
125int tlsext_psk_kex_modes_client_parse(SSL *s, uint16_t msg_type, CBS *cbs,
126 int *alert);
127int tlsext_psk_kex_modes_server_needs(SSL *s, uint16_t msg_type);
128int tlsext_psk_kex_modes_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
129int tlsext_psk_kex_modes_server_parse(SSL *s, uint16_t msg_type, CBS *cbs,
130 int *alert);
131
132int tlsext_psk_client_needs(SSL *s, uint16_t msg_type);
133int tlsext_psk_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
134int tlsext_psk_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
135int tlsext_psk_server_needs(SSL *s, uint16_t msg_type);
136int tlsext_psk_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
137int tlsext_psk_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
138
139#ifndef OPENSSL_NO_SRTP
140int tlsext_srtp_client_needs(SSL *s, uint16_t msg_type);
141int tlsext_srtp_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
142int tlsext_srtp_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
143int tlsext_srtp_server_needs(SSL *s, uint16_t msg_type);
144int tlsext_srtp_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
145int tlsext_srtp_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
146#endif
147
148int tlsext_quic_transport_parameters_client_needs(SSL *s, uint16_t msg_type);
149int tlsext_quic_transport_parameters_client_build(SSL *s, uint16_t msg_type,
150 CBB *cbb);
151int tlsext_quic_transport_parameters_client_parse(SSL *s, uint16_t msg_type,
152 CBS *cbs, int *alert);
153int tlsext_quic_transport_parameters_server_needs(SSL *s, uint16_t msg_type);
154int tlsext_quic_transport_parameters_server_build(SSL *s, uint16_t msg_type,
155 CBB *cbb);
156int tlsext_quic_transport_parameters_server_parse(SSL *s, uint16_t msg_type,
157 CBS *cbs, int *alert);
158
159int tlsext_client_build(SSL *s, uint16_t msg_type, CBB *cbb); 37int tlsext_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
160int tlsext_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert); 38int tlsext_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
161 39
162int tlsext_server_build(SSL *s, uint16_t msg_type, CBB *cbb); 40int tlsext_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
163int tlsext_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert); 41int tlsext_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
164 42
165const struct tls_extension *tls_extension_find(uint16_t, size_t *);
166int tlsext_extension_seen(SSL *s, uint16_t); 43int tlsext_extension_seen(SSL *s, uint16_t);
44
167__END_HIDDEN_DECLS 45__END_HIDDEN_DECLS
168 46
169#endif 47#endif