summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_tlsext.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libssl/tls13_tlsext.h97
1 files changed, 97 insertions, 0 deletions
diff --git a/src/lib/libssl/tls13_tlsext.h b/src/lib/libssl/tls13_tlsext.h
new file mode 100644
index 0000000000..f7b45629c8
--- /dev/null
+++ b/src/lib/libssl/tls13_tlsext.h
@@ -0,0 +1,97 @@
1/* $OpenBSD: tls13_tlsext.h,v 1.1 2019/01/17 00:56:57 beck Exp $ */
2/*
3 * Copyright (c) 2016, 2017 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */
18
19#ifndef HEADER_SSL_TLS13_TLSEXT_H
20#define HEADER_SSL_TLS13_TLSEXT_H
21
22__BEGIN_HIDDEN_DECLS
23
24int tls13_tlsext_alpn_clienthello_needs(SSL *s);
25int tls13_tlsext_alpn_clienthello_build(SSL *s, CBB *cbb);
26int tls13_tlsext_alpn_clienthello_parse(SSL *s, CBS *cbs, int *alert);
27int tls13_tlsext_alpn_serverhello_needs(SSL *s);
28int tls13_tlsext_alpn_serverhello_build(SSL *s, CBB *cbb);
29int tls13_tlsext_alpn_serverhello_parse(SSL *s, CBS *cbs, int *alert);
30
31int tls13_tlsext_ri_clienthello_needs(SSL *s);
32int tls13_tlsext_ri_clienthello_build(SSL *s, CBB *cbb);
33int tls13_tlsext_ri_clienthello_parse(SSL *s, CBS *cbs, int *alert);
34int tls13_tlsext_ri_serverhello_needs(SSL *s);
35int tls13_tlsext_ri_serverhello_build(SSL *s, CBB *cbb);
36int tls13_tlsext_ri_serverhello_parse(SSL *s, CBS *cbs, int *alert);
37
38int tls13_tlsext_sigalgs_clienthello_needs(SSL *s);
39int tls13_tlsext_sigalgs_clienthello_build(SSL *s, CBB *cbb);
40int tls13_tlsext_sigalgs_clienthello_parse(SSL *s, CBS *cbs, int *alert);
41int tls13_tlsext_sigalgs_serverhello_needs(SSL *s);
42int tls13_tlsext_sigalgs_serverhello_build(SSL *s, CBB *cbb);
43int tls13_tlsext_sigalgs_serverhello_parse(SSL *s, CBS *cbs, int *alert);
44
45int tls13_tlsext_sni_clienthello_needs(SSL *s);
46int tls13_tlsext_sni_clienthello_build(SSL *s, CBB *cbb);
47int tls13_tlsext_sni_clienthello_parse(SSL *s, CBS *cbs, int *alert);
48int tls13_tlsext_sni_serverhello_needs(SSL *s);
49int tls13_tlsext_sni_serverhello_build(SSL *s, CBB *cbb);
50int tls13_tlsext_sni_serverhello_parse(SSL *s, CBS *cbs, int *alert);
51
52int tls13_tlsext_supportedgroups_clienthello_needs(SSL *s);
53int tls13_tlsext_supportedgroups_clienthello_build(SSL *s, CBB *cbb);
54int tls13_tlsext_supportedgroups_clienthello_parse(SSL *s, CBS *cbs, int *alert);
55int tls13_tlsext_supportedgroups_serverhello_needs(SSL *s);
56int tls13_tlsext_supportedgroups_serverhello_build(SSL *s, CBB *cbb);
57int tls13_tlsext_supportedgroups_serverhello_parse(SSL *s, CBS *cbs, int *alert);
58
59int tls13_tlsext_ecpf_clienthello_needs(SSL *s);
60int tls13_tlsext_ecpf_clienthello_build(SSL *s, CBB *cbb);
61int tls13_tlsext_ecpf_clienthello_parse(SSL *s, CBS *cbs, int *alert);
62int tls13_tlsext_ecpf_serverhello_needs(SSL *s);
63int tls13_tlsext_ecpf_serverhello_build(SSL *s, CBB *cbb);
64int tls13_tlsext_ecpf_serverhello_parse(SSL *s, CBS *cbs, int *alert);
65
66int tls13_tlsext_ocsp_clienthello_needs(SSL *s);
67int tls13_tlsext_ocsp_clienthello_build(SSL *s, CBB *cbb);
68int tls13_tlsext_ocsp_clienthello_parse(SSL *s, CBS *cbs, int *alert);
69int tls13_tlsext_ocsp_serverhello_needs(SSL *s);
70int tls13_tlsext_ocsp_serverhello_build(SSL *s, CBB *cbb);
71int tls13_tlsext_ocsp_serverhello_parse(SSL *s, CBS *cbs, int *alert);
72
73int tls13_tlsext_sessionticket_clienthello_needs(SSL *s);
74int tls13_tlsext_sessionticket_clienthello_build(SSL *s, CBB *cbb);
75int tls13_tlsext_sessionticket_clienthello_parse(SSL *s, CBS *cbs, int *alert);
76int tls13_tlsext_sessionticket_serverhello_needs(SSL *s);
77int tls13_tlsext_sessionticket_serverhello_build(SSL *s, CBB *cbb);
78int tls13_tlsext_sessionticket_serverhello_parse(SSL *s, CBS *cbs, int *alert);
79
80#ifndef OPENSSL_NO_SRTP
81int tls13_tlsext_srtp_clienthello_needs(SSL *s);
82int tls13_tlsext_srtp_clienthello_build(SSL *s, CBB *cbb);
83int tls13_tlsext_srtp_clienthello_parse(SSL *s, CBS *cbs, int *alert);
84int tls13_tlsext_srtp_serverhello_needs(SSL *s);
85int tls13_tlsext_srtp_serverhello_build(SSL *s, CBB *cbb);
86int tls13_tlsext_srtp_serverhello_parse(SSL *s, CBS *cbs, int *alert);
87#endif
88
89int tls13_tlsext_clienthello_build(SSL *s, CBB *cbb);
90int tls13_tlsext_clienthello_parse(SSL *s, CBS *cbs, int *alert);
91
92int tls13_tlsext_serverhello_build(SSL *s, CBB *cbb);
93int tls13_tlsext_serverhello_parse(SSL *s, CBS *cbs, int *alert);
94
95__END_HIDDEN_DECLS
96
97#endif