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.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/lib/libssl/tls13_tlsext.h b/src/lib/libssl/tls13_tlsext.h
index f7b45629c8..0c81445489 100644
--- a/src/lib/libssl/tls13_tlsext.h
+++ b/src/lib/libssl/tls13_tlsext.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_tlsext.h,v 1.1 2019/01/17 00:56:57 beck Exp $ */ 1/* $OpenBSD: tls13_tlsext.h,v 1.2 2019/01/17 02:55:48 beck Exp $ */
2/* 2/*
3 * Copyright (c) 2016, 2017 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2016, 2017 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> 4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
@@ -19,6 +19,15 @@
19#ifndef HEADER_SSL_TLS13_TLSEXT_H 19#ifndef HEADER_SSL_TLS13_TLSEXT_H
20#define HEADER_SSL_TLS13_TLSEXT_H 20#define HEADER_SSL_TLS13_TLSEXT_H
21 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
22__BEGIN_HIDDEN_DECLS 31__BEGIN_HIDDEN_DECLS
23 32
24int tls13_tlsext_alpn_clienthello_needs(SSL *s); 33int tls13_tlsext_alpn_clienthello_needs(SSL *s);
@@ -87,10 +96,10 @@ int tls13_tlsext_srtp_serverhello_parse(SSL *s, CBS *cbs, int *alert);
87#endif 96#endif
88 97
89int tls13_tlsext_clienthello_build(SSL *s, CBB *cbb); 98int tls13_tlsext_clienthello_build(SSL *s, CBB *cbb);
90int tls13_tlsext_clienthello_parse(SSL *s, CBS *cbs, int *alert); 99int tls13_tlsext_clienthello_parse(SSL *s, CBS *cbs, int *alert, uint16_t msg);
91 100
92int tls13_tlsext_serverhello_build(SSL *s, CBB *cbb); 101int tls13_tlsext_serverhello_build(SSL *s, CBB *cbb);
93int tls13_tlsext_serverhello_parse(SSL *s, CBS *cbs, int *alert); 102int tls13_tlsext_serverhello_parse(SSL *s, CBS *cbs, int *alert, uint16_t msg);
94 103
95__END_HIDDEN_DECLS 104__END_HIDDEN_DECLS
96 105