summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_internal.h
diff options
context:
space:
mode:
authorjsing <>2019-01-21 10:44:08 +0000
committerjsing <>2019-01-21 10:44:08 +0000
commitdacdef0bd14d3205fd8b9a76fa9f8f2d56946ce4 (patch)
tree2d62fadb51ad002be7e5cba46dd5f6f31c36c111 /src/lib/libssl/tls13_internal.h
parent99fe8b99380227d1dceddd13bd867d7abb47184e (diff)
downloadopenbsd-dacdef0bd14d3205fd8b9a76fa9f8f2d56946ce4.tar.gz
openbsd-dacdef0bd14d3205fd8b9a76fa9f8f2d56946ce4.tar.bz2
openbsd-dacdef0bd14d3205fd8b9a76fa9f8f2d56946ce4.zip
The main handshake loop can be shared between client and server.
Pull the shared code up into a function and call it from tls13_connect() and tls13_accept() instead of duplicating it. "Yes, please!" tb@
Diffstat (limited to 'src/lib/libssl/tls13_internal.h')
-rw-r--r--src/lib/libssl/tls13_internal.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h
index 03fdab7e53..03de0fc40e 100644
--- a/src/lib/libssl/tls13_internal.h
+++ b/src/lib/libssl/tls13_internal.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_internal.h,v 1.12 2019/01/21 09:10:58 jsing Exp $ */ 1/* $OpenBSD: tls13_internal.h,v 1.13 2019/01/21 10:44:08 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2018 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2018 Bob Beck <beck@openbsd.org>
4 * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> 4 * Copyright (c) 2018 Theo Buehler <tb@openbsd.org>
@@ -186,6 +186,8 @@ int tls13_legacy_write_bytes(SSL *ssl, int type, const void *buf, int len);
186#define TLS13_MT_KEY_UPDATE 24 186#define TLS13_MT_KEY_UPDATE 24
187#define TLS13_MT_MESSAGE_HASH 254 187#define TLS13_MT_MESSAGE_HASH 254
188 188
189int tls13_handshake_perform(struct tls13_ctx *ctx);
190
189int tls13_client_hello_send(struct tls13_ctx *ctx); 191int tls13_client_hello_send(struct tls13_ctx *ctx);
190int tls13_client_hello_recv(struct tls13_ctx *ctx); 192int tls13_client_hello_recv(struct tls13_ctx *ctx);
191int tls13_client_hello_retry_send(struct tls13_ctx *ctx); 193int tls13_client_hello_retry_send(struct tls13_ctx *ctx);