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