diff options
Diffstat (limited to 'src/lib/libssl/tls13_tlsext.h')
-rw-r--r-- | src/lib/libssl/tls13_tlsext.h | 106 |
1 files changed, 0 insertions, 106 deletions
diff --git a/src/lib/libssl/tls13_tlsext.h b/src/lib/libssl/tls13_tlsext.h deleted file mode 100644 index 0c81445489..0000000000 --- a/src/lib/libssl/tls13_tlsext.h +++ /dev/null | |||
@@ -1,106 +0,0 @@ | |||
1 | /* $OpenBSD: tls13_tlsext.h,v 1.2 2019/01/17 02:55:48 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 | /* RFC 8446 Section 4.2 */ | ||
23 | #define TLS13_TLSEXT_MSG_CH 0x0001 /* ClientHello */ | ||
24 | #define TLS13_TLSEXT_MSG_SH 0x0002 /* ServerHello */ | ||
25 | #define TLS13_TLSEXT_MSG_EE 0x0004 /* EncryptedExtension */ | ||
26 | #define TLS13_TLSEXT_MSG_CT 0x0008 /* Certificate */ | ||
27 | #define TLS13_TLSEXT_MSG_CR 0x0010 /* CertificateRequest */ | ||
28 | #define TLS13_TLSEXT_MSG_NST 0x0020 /* NewSessionTicket */ | ||
29 | #define TLS13_TLSEXT_MSG_HRR 0x0030 /* HelloRetryRequest */ | ||
30 | |||
31 | __BEGIN_HIDDEN_DECLS | ||
32 | |||
33 | int tls13_tlsext_alpn_clienthello_needs(SSL *s); | ||
34 | int tls13_tlsext_alpn_clienthello_build(SSL *s, CBB *cbb); | ||
35 | int tls13_tlsext_alpn_clienthello_parse(SSL *s, CBS *cbs, int *alert); | ||
36 | int tls13_tlsext_alpn_serverhello_needs(SSL *s); | ||
37 | int tls13_tlsext_alpn_serverhello_build(SSL *s, CBB *cbb); | ||
38 | int tls13_tlsext_alpn_serverhello_parse(SSL *s, CBS *cbs, int *alert); | ||
39 | |||
40 | int tls13_tlsext_ri_clienthello_needs(SSL *s); | ||
41 | int tls13_tlsext_ri_clienthello_build(SSL *s, CBB *cbb); | ||
42 | int tls13_tlsext_ri_clienthello_parse(SSL *s, CBS *cbs, int *alert); | ||
43 | int tls13_tlsext_ri_serverhello_needs(SSL *s); | ||
44 | int tls13_tlsext_ri_serverhello_build(SSL *s, CBB *cbb); | ||
45 | int tls13_tlsext_ri_serverhello_parse(SSL *s, CBS *cbs, int *alert); | ||
46 | |||
47 | int tls13_tlsext_sigalgs_clienthello_needs(SSL *s); | ||
48 | int tls13_tlsext_sigalgs_clienthello_build(SSL *s, CBB *cbb); | ||
49 | int tls13_tlsext_sigalgs_clienthello_parse(SSL *s, CBS *cbs, int *alert); | ||
50 | int tls13_tlsext_sigalgs_serverhello_needs(SSL *s); | ||
51 | int tls13_tlsext_sigalgs_serverhello_build(SSL *s, CBB *cbb); | ||
52 | int tls13_tlsext_sigalgs_serverhello_parse(SSL *s, CBS *cbs, int *alert); | ||
53 | |||
54 | int tls13_tlsext_sni_clienthello_needs(SSL *s); | ||
55 | int tls13_tlsext_sni_clienthello_build(SSL *s, CBB *cbb); | ||
56 | int tls13_tlsext_sni_clienthello_parse(SSL *s, CBS *cbs, int *alert); | ||
57 | int tls13_tlsext_sni_serverhello_needs(SSL *s); | ||
58 | int tls13_tlsext_sni_serverhello_build(SSL *s, CBB *cbb); | ||
59 | int tls13_tlsext_sni_serverhello_parse(SSL *s, CBS *cbs, int *alert); | ||
60 | |||
61 | int tls13_tlsext_supportedgroups_clienthello_needs(SSL *s); | ||
62 | int tls13_tlsext_supportedgroups_clienthello_build(SSL *s, CBB *cbb); | ||
63 | int tls13_tlsext_supportedgroups_clienthello_parse(SSL *s, CBS *cbs, int *alert); | ||
64 | int tls13_tlsext_supportedgroups_serverhello_needs(SSL *s); | ||
65 | int tls13_tlsext_supportedgroups_serverhello_build(SSL *s, CBB *cbb); | ||
66 | int tls13_tlsext_supportedgroups_serverhello_parse(SSL *s, CBS *cbs, int *alert); | ||
67 | |||
68 | int tls13_tlsext_ecpf_clienthello_needs(SSL *s); | ||
69 | int tls13_tlsext_ecpf_clienthello_build(SSL *s, CBB *cbb); | ||
70 | int tls13_tlsext_ecpf_clienthello_parse(SSL *s, CBS *cbs, int *alert); | ||
71 | int tls13_tlsext_ecpf_serverhello_needs(SSL *s); | ||
72 | int tls13_tlsext_ecpf_serverhello_build(SSL *s, CBB *cbb); | ||
73 | int tls13_tlsext_ecpf_serverhello_parse(SSL *s, CBS *cbs, int *alert); | ||
74 | |||
75 | int tls13_tlsext_ocsp_clienthello_needs(SSL *s); | ||
76 | int tls13_tlsext_ocsp_clienthello_build(SSL *s, CBB *cbb); | ||
77 | int tls13_tlsext_ocsp_clienthello_parse(SSL *s, CBS *cbs, int *alert); | ||
78 | int tls13_tlsext_ocsp_serverhello_needs(SSL *s); | ||
79 | int tls13_tlsext_ocsp_serverhello_build(SSL *s, CBB *cbb); | ||
80 | int tls13_tlsext_ocsp_serverhello_parse(SSL *s, CBS *cbs, int *alert); | ||
81 | |||
82 | int tls13_tlsext_sessionticket_clienthello_needs(SSL *s); | ||
83 | int tls13_tlsext_sessionticket_clienthello_build(SSL *s, CBB *cbb); | ||
84 | int tls13_tlsext_sessionticket_clienthello_parse(SSL *s, CBS *cbs, int *alert); | ||
85 | int tls13_tlsext_sessionticket_serverhello_needs(SSL *s); | ||
86 | int tls13_tlsext_sessionticket_serverhello_build(SSL *s, CBB *cbb); | ||
87 | int tls13_tlsext_sessionticket_serverhello_parse(SSL *s, CBS *cbs, int *alert); | ||
88 | |||
89 | #ifndef OPENSSL_NO_SRTP | ||
90 | int tls13_tlsext_srtp_clienthello_needs(SSL *s); | ||
91 | int tls13_tlsext_srtp_clienthello_build(SSL *s, CBB *cbb); | ||
92 | int tls13_tlsext_srtp_clienthello_parse(SSL *s, CBS *cbs, int *alert); | ||
93 | int tls13_tlsext_srtp_serverhello_needs(SSL *s); | ||
94 | int tls13_tlsext_srtp_serverhello_build(SSL *s, CBB *cbb); | ||
95 | int tls13_tlsext_srtp_serverhello_parse(SSL *s, CBS *cbs, int *alert); | ||
96 | #endif | ||
97 | |||
98 | int tls13_tlsext_clienthello_build(SSL *s, CBB *cbb); | ||
99 | int tls13_tlsext_clienthello_parse(SSL *s, CBS *cbs, int *alert, uint16_t msg); | ||
100 | |||
101 | int tls13_tlsext_serverhello_build(SSL *s, CBB *cbb); | ||
102 | int tls13_tlsext_serverhello_parse(SSL *s, CBS *cbs, int *alert, uint16_t msg); | ||
103 | |||
104 | __END_HIDDEN_DECLS | ||
105 | |||
106 | #endif | ||