aboutsummaryrefslogtreecommitdiff
path: root/ssl/statem/statem_locl.h
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-04-05 11:59:23 +0100
committerMatt Caswell <matt@openssl.org>2017-04-07 13:41:04 +0100
commit43ae5eed6f8665b88f45445df666ab2688aae7b0 (patch)
tree33413025b37f6fb6f4d406591c9fbbb066702d1b /ssl/statem/statem_locl.h
parentfe874d27d33faa527b5e945137787bf6b0f5c253 (diff)
downloadopenssl-43ae5eed6f8665b88f45445df666ab2688aae7b0.zip
openssl-43ae5eed6f8665b88f45445df666ab2688aae7b0.tar.gz
openssl-43ae5eed6f8665b88f45445df666ab2688aae7b0.tar.bz2
Implement a new custom extensions API
The old custom extensions API was not TLSv1.3 aware. Extensions are used extensively in TLSv1.3 and they can appear in many different types of messages. Therefore we need a new API to be able to cope with that. Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3139)
Diffstat (limited to 'ssl/statem/statem_locl.h')
-rw-r--r--ssl/statem/statem_locl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ssl/statem/statem_locl.h b/ssl/statem/statem_locl.h
index 43d79b8..2352c6a 100644
--- a/ssl/statem/statem_locl.h
+++ b/ssl/statem/statem_locl.h
@@ -153,6 +153,8 @@ MSG_PROCESS_RETURN tls_process_end_of_early_data(SSL *s, PACKET *pkt);
/* Extension processing */
+__owur int extension_is_relevant(SSL *s, unsigned int extctx,
+ unsigned int thisctx);
__owur int tls_collect_extensions(SSL *s, PACKET *packet, unsigned int context,
RAW_EXTENSION **res, int *al, size_t *len);
__owur int tls_parse_extension(SSL *s, TLSEXT_INDEX idx, int context,
@@ -160,6 +162,8 @@ __owur int tls_parse_extension(SSL *s, TLSEXT_INDEX idx, int context,
int *al);
__owur int tls_parse_all_extensions(SSL *s, int context, RAW_EXTENSION *exts,
X509 *x, size_t chainidx, int *al);
+__owur int should_add_extension(SSL *s, unsigned int extctx,
+ unsigned int thisctx, int max_version);
__owur int tls_construct_extensions(SSL *s, WPACKET *pkt, unsigned int context,
X509 *x, size_t chainidx, int *al);