diff options
author | jsing <> | 2019-01-21 10:44:08 +0000 |
---|---|---|
committer | jsing <> | 2019-01-21 10:44:08 +0000 |
commit | dacdef0bd14d3205fd8b9a76fa9f8f2d56946ce4 (patch) | |
tree | 2d62fadb51ad002be7e5cba46dd5f6f31c36c111 /src/lib/libssl/tls13_internal.h | |
parent | 99fe8b99380227d1dceddd13bd867d7abb47184e (diff) | |
download | openbsd-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.h | 4 |
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 | ||
189 | int tls13_handshake_perform(struct tls13_ctx *ctx); | ||
190 | |||
189 | int tls13_client_hello_send(struct tls13_ctx *ctx); | 191 | int tls13_client_hello_send(struct tls13_ctx *ctx); |
190 | int tls13_client_hello_recv(struct tls13_ctx *ctx); | 192 | int tls13_client_hello_recv(struct tls13_ctx *ctx); |
191 | int tls13_client_hello_retry_send(struct tls13_ctx *ctx); | 193 | int tls13_client_hello_retry_send(struct tls13_ctx *ctx); |