summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_tlsext.h
diff options
context:
space:
mode:
authorcvs2svn <admin@example.com>2021-08-18 16:06:57 +0000
committercvs2svn <admin@example.com>2021-08-18 16:06:57 +0000
commitd56c8fa8260d226f98b26f017b45b9c2b135f38d (patch)
tree348178b41617813cc93787187984a734ef8379ca /src/lib/libssl/ssl_tlsext.h
parent18b9c1bcab7c37d8c5bd05b8e0d14d0c59d96650 (diff)
downloadopenbsd-tb_20210818.tar.gz
openbsd-tb_20210818.tar.bz2
openbsd-tb_20210818.zip
This commit was manufactured by cvs2git to create tag 'tb_20210818'.tb_20210818
Diffstat (limited to 'src/lib/libssl/ssl_tlsext.h')
-rw-r--r--src/lib/libssl/ssl_tlsext.h141
1 files changed, 0 insertions, 141 deletions
diff --git a/src/lib/libssl/ssl_tlsext.h b/src/lib/libssl/ssl_tlsext.h
deleted file mode 100644
index 8e0742aa2c..0000000000
--- a/src/lib/libssl/ssl_tlsext.h
+++ /dev/null
@@ -1,141 +0,0 @@
1/* $OpenBSD: ssl_tlsext.h,v 1.26 2020/10/11 01:13:04 guenther Exp $ */
2/*
3 * Copyright (c) 2016, 2017 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
5 * Copyright (c) 2019 Bob Beck <beck@openbsd.org>
6 *
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
10 *
11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 */
19
20#ifndef HEADER_SSL_TLSEXT_H
21#define HEADER_SSL_TLSEXT_H
22
23/* TLSv1.3 - RFC 8446 Section 4.2. */
24#define SSL_TLSEXT_MSG_CH 0x0001 /* ClientHello */
25#define SSL_TLSEXT_MSG_SH 0x0002 /* ServerHello */
26#define SSL_TLSEXT_MSG_EE 0x0004 /* EncryptedExtension */
27#define SSL_TLSEXT_MSG_CT 0x0008 /* Certificate */
28#define SSL_TLSEXT_MSG_CR 0x0010 /* CertificateRequest */
29#define SSL_TLSEXT_MSG_NST 0x0020 /* NewSessionTicket */
30#define SSL_TLSEXT_MSG_HRR 0x0040 /* HelloRetryRequest */
31
32__BEGIN_HIDDEN_DECLS
33
34int tlsext_alpn_client_needs(SSL *s, uint16_t msg_type);
35int tlsext_alpn_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
36int tlsext_alpn_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
37int tlsext_alpn_server_needs(SSL *s, uint16_t msg_type);
38int tlsext_alpn_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
39int tlsext_alpn_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
40
41int tlsext_ri_client_needs(SSL *s, uint16_t msg_type);
42int tlsext_ri_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
43int tlsext_ri_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
44int tlsext_ri_server_needs(SSL *s, uint16_t msg_type);
45int tlsext_ri_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
46int tlsext_ri_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
47
48int tlsext_sigalgs_client_needs(SSL *s, uint16_t msg_type);
49int tlsext_sigalgs_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
50int tlsext_sigalgs_client_parse(SSL *s, uint16_t msg_type, CBS *cbs,
51 int *alert);
52int tlsext_sigalgs_server_needs(SSL *s, uint16_t msg_type);
53int tlsext_sigalgs_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
54int tlsext_sigalgs_server_parse(SSL *s, uint16_t msg_type, CBS *cbs,
55 int *alert);
56
57int tlsext_sni_client_needs(SSL *s, uint16_t msg_type);
58int tlsext_sni_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
59int tlsext_sni_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
60int tlsext_sni_server_needs(SSL *s, uint16_t msg_type);
61int tlsext_sni_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
62int tlsext_sni_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
63int tlsext_sni_is_valid_hostname(CBS *cbs);
64
65int tlsext_supportedgroups_client_needs(SSL *s, uint16_t msg_type);
66int tlsext_supportedgroups_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
67int tlsext_supportedgroups_client_parse(SSL *s, uint16_t msg_type, CBS *cbs,
68 int *alert);
69int tlsext_supportedgroups_server_needs(SSL *s, uint16_t msg_type);
70int tlsext_supportedgroups_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
71int tlsext_supportedgroups_server_parse(SSL *s, uint16_t msg_type, CBS *cbs,
72 int *alert);
73
74int tlsext_ecpf_client_needs(SSL *s, uint16_t msg_type);
75int tlsext_ecpf_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
76int tlsext_ecpf_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
77int tlsext_ecpf_server_needs(SSL *s, uint16_t msg_type);
78int tlsext_ecpf_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
79int tlsext_ecpf_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
80
81int tlsext_ocsp_client_needs(SSL *s, uint16_t msg_type);
82int tlsext_ocsp_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
83int tlsext_ocsp_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
84int tlsext_ocsp_server_needs(SSL *s, uint16_t msg_type);
85int tlsext_ocsp_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
86int tlsext_ocsp_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
87
88int tlsext_sessionticket_client_needs(SSL *s, uint16_t msg_type);
89int tlsext_sessionticket_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
90int tlsext_sessionticket_client_parse(SSL *s, uint16_t msg_type, CBS *cbs,
91 int *alert);
92int tlsext_sessionticket_server_needs(SSL *s, uint16_t msg_type);
93int tlsext_sessionticket_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
94int tlsext_sessionticket_server_parse(SSL *s, uint16_t msg_type, CBS *cbs,
95 int *alert);
96
97int tlsext_versions_client_needs(SSL *s, uint16_t msg_type);
98int tlsext_versions_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
99int tlsext_versions_client_parse(SSL *s, uint16_t msg_type, CBS *cbs,
100 int *alert);
101int tlsext_versions_server_needs(SSL *s, uint16_t msg_type);
102int tlsext_versions_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
103int tlsext_versions_server_parse(SSL *s, uint16_t msg_type, CBS *cbs,
104 int *alert);
105
106int tlsext_keyshare_client_needs(SSL *s, uint16_t msg_type);
107int tlsext_keyshare_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
108int tlsext_keyshare_client_parse(SSL *s, uint16_t msg_type, CBS *cbs,
109 int *alert);
110int tlsext_keyshare_server_needs(SSL *s, uint16_t msg_type);
111int tlsext_keyshare_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
112int tlsext_keyshare_server_parse(SSL *s, uint16_t msg_type, CBS *cbs,
113 int *alert);
114
115int tlsext_cookie_client_needs(SSL *s, uint16_t msg_type);
116int tlsext_cookie_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
117int tlsext_cookie_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
118int tlsext_cookie_server_needs(SSL *s, uint16_t msg_type);
119int tlsext_cookie_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
120int tlsext_cookie_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
121
122#ifndef OPENSSL_NO_SRTP
123int tlsext_srtp_client_needs(SSL *s, uint16_t msg_type);
124int tlsext_srtp_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
125int tlsext_srtp_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
126int tlsext_srtp_server_needs(SSL *s, uint16_t msg_type);
127int tlsext_srtp_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
128int tlsext_srtp_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
129#endif
130
131int tlsext_client_build(SSL *s, uint16_t msg_type, CBB *cbb);
132int tlsext_client_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
133
134int tlsext_server_build(SSL *s, uint16_t msg_type, CBB *cbb);
135int tlsext_server_parse(SSL *s, uint16_t msg_type, CBS *cbs, int *alert);
136
137const struct tls_extension *tls_extension_find(uint16_t, size_t *);
138int tlsext_extension_seen(SSL *s, uint16_t);
139__END_HIDDEN_DECLS
140
141#endif