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