diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libssl/tls13_tlsext.h | 97 |
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 | |||
24 | int tls13_tlsext_alpn_clienthello_needs(SSL *s); | ||
25 | int tls13_tlsext_alpn_clienthello_build(SSL *s, CBB *cbb); | ||
26 | int tls13_tlsext_alpn_clienthello_parse(SSL *s, CBS *cbs, int *alert); | ||
27 | int tls13_tlsext_alpn_serverhello_needs(SSL *s); | ||
28 | int tls13_tlsext_alpn_serverhello_build(SSL *s, CBB *cbb); | ||
29 | int tls13_tlsext_alpn_serverhello_parse(SSL *s, CBS *cbs, int *alert); | ||
30 | |||
31 | int tls13_tlsext_ri_clienthello_needs(SSL *s); | ||
32 | int tls13_tlsext_ri_clienthello_build(SSL *s, CBB *cbb); | ||
33 | int tls13_tlsext_ri_clienthello_parse(SSL *s, CBS *cbs, int *alert); | ||
34 | int tls13_tlsext_ri_serverhello_needs(SSL *s); | ||
35 | int tls13_tlsext_ri_serverhello_build(SSL *s, CBB *cbb); | ||
36 | int tls13_tlsext_ri_serverhello_parse(SSL *s, CBS *cbs, int *alert); | ||
37 | |||
38 | int tls13_tlsext_sigalgs_clienthello_needs(SSL *s); | ||
39 | int tls13_tlsext_sigalgs_clienthello_build(SSL *s, CBB *cbb); | ||
40 | int tls13_tlsext_sigalgs_clienthello_parse(SSL *s, CBS *cbs, int *alert); | ||
41 | int tls13_tlsext_sigalgs_serverhello_needs(SSL *s); | ||
42 | int tls13_tlsext_sigalgs_serverhello_build(SSL *s, CBB *cbb); | ||
43 | int tls13_tlsext_sigalgs_serverhello_parse(SSL *s, CBS *cbs, int *alert); | ||
44 | |||
45 | int tls13_tlsext_sni_clienthello_needs(SSL *s); | ||
46 | int tls13_tlsext_sni_clienthello_build(SSL *s, CBB *cbb); | ||
47 | int tls13_tlsext_sni_clienthello_parse(SSL *s, CBS *cbs, int *alert); | ||
48 | int tls13_tlsext_sni_serverhello_needs(SSL *s); | ||
49 | int tls13_tlsext_sni_serverhello_build(SSL *s, CBB *cbb); | ||
50 | int tls13_tlsext_sni_serverhello_parse(SSL *s, CBS *cbs, int *alert); | ||
51 | |||
52 | int tls13_tlsext_supportedgroups_clienthello_needs(SSL *s); | ||
53 | int tls13_tlsext_supportedgroups_clienthello_build(SSL *s, CBB *cbb); | ||
54 | int tls13_tlsext_supportedgroups_clienthello_parse(SSL *s, CBS *cbs, int *alert); | ||
55 | int tls13_tlsext_supportedgroups_serverhello_needs(SSL *s); | ||
56 | int tls13_tlsext_supportedgroups_serverhello_build(SSL *s, CBB *cbb); | ||
57 | int tls13_tlsext_supportedgroups_serverhello_parse(SSL *s, CBS *cbs, int *alert); | ||
58 | |||
59 | int tls13_tlsext_ecpf_clienthello_needs(SSL *s); | ||
60 | int tls13_tlsext_ecpf_clienthello_build(SSL *s, CBB *cbb); | ||
61 | int tls13_tlsext_ecpf_clienthello_parse(SSL *s, CBS *cbs, int *alert); | ||
62 | int tls13_tlsext_ecpf_serverhello_needs(SSL *s); | ||
63 | int tls13_tlsext_ecpf_serverhello_build(SSL *s, CBB *cbb); | ||
64 | int tls13_tlsext_ecpf_serverhello_parse(SSL *s, CBS *cbs, int *alert); | ||
65 | |||
66 | int tls13_tlsext_ocsp_clienthello_needs(SSL *s); | ||
67 | int tls13_tlsext_ocsp_clienthello_build(SSL *s, CBB *cbb); | ||
68 | int tls13_tlsext_ocsp_clienthello_parse(SSL *s, CBS *cbs, int *alert); | ||
69 | int tls13_tlsext_ocsp_serverhello_needs(SSL *s); | ||
70 | int tls13_tlsext_ocsp_serverhello_build(SSL *s, CBB *cbb); | ||
71 | int tls13_tlsext_ocsp_serverhello_parse(SSL *s, CBS *cbs, int *alert); | ||
72 | |||
73 | int tls13_tlsext_sessionticket_clienthello_needs(SSL *s); | ||
74 | int tls13_tlsext_sessionticket_clienthello_build(SSL *s, CBB *cbb); | ||
75 | int tls13_tlsext_sessionticket_clienthello_parse(SSL *s, CBS *cbs, int *alert); | ||
76 | int tls13_tlsext_sessionticket_serverhello_needs(SSL *s); | ||
77 | int tls13_tlsext_sessionticket_serverhello_build(SSL *s, CBB *cbb); | ||
78 | int tls13_tlsext_sessionticket_serverhello_parse(SSL *s, CBS *cbs, int *alert); | ||
79 | |||
80 | #ifndef OPENSSL_NO_SRTP | ||
81 | int tls13_tlsext_srtp_clienthello_needs(SSL *s); | ||
82 | int tls13_tlsext_srtp_clienthello_build(SSL *s, CBB *cbb); | ||
83 | int tls13_tlsext_srtp_clienthello_parse(SSL *s, CBS *cbs, int *alert); | ||
84 | int tls13_tlsext_srtp_serverhello_needs(SSL *s); | ||
85 | int tls13_tlsext_srtp_serverhello_build(SSL *s, CBB *cbb); | ||
86 | int tls13_tlsext_srtp_serverhello_parse(SSL *s, CBS *cbs, int *alert); | ||
87 | #endif | ||
88 | |||
89 | int tls13_tlsext_clienthello_build(SSL *s, CBB *cbb); | ||
90 | int tls13_tlsext_clienthello_parse(SSL *s, CBS *cbs, int *alert); | ||
91 | |||
92 | int tls13_tlsext_serverhello_build(SSL *s, CBB *cbb); | ||
93 | int tls13_tlsext_serverhello_parse(SSL *s, CBS *cbs, int *alert); | ||
94 | |||
95 | __END_HIDDEN_DECLS | ||
96 | |||
97 | #endif | ||