From af211230a5f258ead1c1969262b345543a02fc3d Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Mon, 21 Jan 2019 10:44:09 +0000 Subject: 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@ --- lib/libssl/tls13_internal.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/libssl/tls13_internal.h') diff --git a/lib/libssl/tls13_internal.h b/lib/libssl/tls13_internal.h index 03fdab7e533..03de0fc40e8 100644 --- a/lib/libssl/tls13_internal.h +++ b/lib/libssl/tls13_internal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_internal.h,v 1.12 2019/01/21 09:10:58 jsing Exp $ */ +/* $OpenBSD: tls13_internal.h,v 1.13 2019/01/21 10:44:08 jsing Exp $ */ /* * Copyright (c) 2018 Bob Beck * Copyright (c) 2018 Theo Buehler @@ -186,6 +186,8 @@ int tls13_legacy_write_bytes(SSL *ssl, int type, const void *buf, int len); #define TLS13_MT_KEY_UPDATE 24 #define TLS13_MT_MESSAGE_HASH 254 +int tls13_handshake_perform(struct tls13_ctx *ctx); + int tls13_client_hello_send(struct tls13_ctx *ctx); int tls13_client_hello_recv(struct tls13_ctx *ctx); int tls13_client_hello_retry_send(struct tls13_ctx *ctx); -- cgit v1.2.3