1 /* $OpenBSD: ssl_tlsext.h,v 1.10 2017/08/27 02:58:04 doug Exp $ */
3 * Copyright (c) 2016, 2017 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
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.
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.
19 int tlsext_alpn_clienthello_needs(SSL
*s
);
20 int tlsext_alpn_clienthello_build(SSL
*s
, CBB
*cbb
);
21 int tlsext_alpn_clienthello_parse(SSL
*s
, CBS
*cbs
, int *alert
);
22 int tlsext_alpn_serverhello_needs(SSL
*s
);
23 int tlsext_alpn_serverhello_build(SSL
*s
, CBB
*cbb
);
24 int tlsext_alpn_serverhello_parse(SSL
*s
, CBS
*cbs
, int *alert
);
26 int tlsext_ri_clienthello_needs(SSL
*s
);
27 int tlsext_ri_clienthello_build(SSL
*s
, CBB
*cbb
);
28 int tlsext_ri_clienthello_parse(SSL
*s
, CBS
*cbs
, int *alert
);
29 int tlsext_ri_serverhello_needs(SSL
*s
);
30 int tlsext_ri_serverhello_build(SSL
*s
, CBB
*cbb
);
31 int tlsext_ri_serverhello_parse(SSL
*s
, CBS
*cbs
, int *alert
);
33 int tlsext_sigalgs_clienthello_needs(SSL
*s
);
34 int tlsext_sigalgs_clienthello_build(SSL
*s
, CBB
*cbb
);
35 int tlsext_sigalgs_clienthello_parse(SSL
*s
, CBS
*cbs
, int *alert
);
36 int tlsext_sigalgs_serverhello_needs(SSL
*s
);
37 int tlsext_sigalgs_serverhello_build(SSL
*s
, CBB
*cbb
);
38 int tlsext_sigalgs_serverhello_parse(SSL
*s
, CBS
*cbs
, int *alert
);
40 int tlsext_sni_clienthello_needs(SSL
*s
);
41 int tlsext_sni_clienthello_build(SSL
*s
, CBB
*cbb
);
42 int tlsext_sni_clienthello_parse(SSL
*s
, CBS
*cbs
, int *alert
);
43 int tlsext_sni_serverhello_needs(SSL
*s
);
44 int tlsext_sni_serverhello_build(SSL
*s
, CBB
*cbb
);
45 int tlsext_sni_serverhello_parse(SSL
*s
, CBS
*cbs
, int *alert
);
47 int tlsext_ec_clienthello_needs(SSL
*s
);
48 int tlsext_ec_clienthello_build(SSL
*s
, CBB
*cbb
);
49 int tlsext_ec_clienthello_parse(SSL
*s
, CBS
*cbs
, int *alert
);
50 int tlsext_ec_serverhello_needs(SSL
*s
);
51 int tlsext_ec_serverhello_build(SSL
*s
, CBB
*cbb
);
52 int tlsext_ec_serverhello_parse(SSL
*s
, CBS
*cbs
, int *alert
);
54 int tlsext_ecpf_clienthello_needs(SSL
*s
);
55 int tlsext_ecpf_clienthello_build(SSL
*s
, CBB
*cbb
);
56 int tlsext_ecpf_clienthello_parse(SSL
*s
, CBS
*cbs
, int *alert
);
57 int tlsext_ecpf_serverhello_needs(SSL
*s
);
58 int tlsext_ecpf_serverhello_build(SSL
*s
, CBB
*cbb
);
59 int tlsext_ecpf_serverhello_parse(SSL
*s
, CBS
*cbs
, int *alert
);
61 int tlsext_ocsp_clienthello_needs(SSL
*s
);
62 int tlsext_ocsp_clienthello_build(SSL
*s
, CBB
*cbb
);
63 int tlsext_ocsp_clienthello_parse(SSL
*s
, CBS
*cbs
, int *alert
);
64 int tlsext_ocsp_serverhello_needs(SSL
*s
);
65 int tlsext_ocsp_serverhello_build(SSL
*s
, CBB
*cbb
);
66 int tlsext_ocsp_serverhello_parse(SSL
*s
, CBS
*cbs
, int *alert
);
68 int tlsext_sessionticket_clienthello_needs(SSL
*s
);
69 int tlsext_sessionticket_clienthello_build(SSL
*s
, CBB
*cbb
);
70 int tlsext_sessionticket_clienthello_parse(SSL
*s
, CBS
*cbs
, int *alert
);
71 int tlsext_sessionticket_serverhello_needs(SSL
*s
);
72 int tlsext_sessionticket_serverhello_build(SSL
*s
, CBB
*cbb
);
73 int tlsext_sessionticket_serverhello_parse(SSL
*s
, CBS
*cbs
, int *alert
);
75 #ifndef OPENSSL_NO_SRTP
76 int tlsext_srtp_clienthello_needs(SSL
*s
);
77 int tlsext_srtp_clienthello_build(SSL
*s
, CBB
*cbb
);
78 int tlsext_srtp_clienthello_parse(SSL
*s
, CBS
*cbs
, int *alert
);
79 int tlsext_srtp_serverhello_needs(SSL
*s
);
80 int tlsext_srtp_serverhello_build(SSL
*s
, CBB
*cbb
);
81 int tlsext_srtp_serverhello_parse(SSL
*s
, CBS
*cbs
, int *alert
);
84 int tlsext_clienthello_build(SSL
*s
, CBB
*cbb
);
85 int tlsext_clienthello_parse_one(SSL
*s
, CBS
*cbs
, uint16_t tlsext_type
,
88 int tlsext_serverhello_build(SSL
*s
, CBB
*cbb
);
89 int tlsext_serverhello_parse_one(SSL
*s
, CBS
*cbs
, uint16_t tlsext_type
,