diff options
| author | jsing <> | 2019-01-21 10:44:08 +0000 |
|---|---|---|
| committer | jsing <> | 2019-01-21 10:44:08 +0000 |
| commit | c559dc954f05921acae8968530173d33e0f4fe7d (patch) | |
| tree | 2d62fadb51ad002be7e5cba46dd5f6f31c36c111 /src/lib/libssl/tls13_internal.h | |
| parent | 5c096912abad8acc83f7efc99a43db13d80f58aa (diff) | |
| download | openbsd-c559dc954f05921acae8968530173d33e0f4fe7d.tar.gz openbsd-c559dc954f05921acae8968530173d33e0f4fe7d.tar.bz2 openbsd-c559dc954f05921acae8968530173d33e0f4fe7d.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 '')
| -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); |
