diff options
| author | jsing <> | 2019-02-14 18:06:35 +0000 |
|---|---|---|
| committer | jsing <> | 2019-02-14 18:06:35 +0000 |
| commit | bcbe5dcae6ade1b7a990956d0fe910175bfdbfe6 (patch) | |
| tree | 90694b3d218c94e01d8381519e240e97a5d1e50f | |
| parent | 73e18c3d9f407f18cd1094dce90bce00a3cd9d09 (diff) | |
| download | openbsd-bcbe5dcae6ade1b7a990956d0fe910175bfdbfe6.tar.gz openbsd-bcbe5dcae6ade1b7a990956d0fe910175bfdbfe6.tar.bz2 openbsd-bcbe5dcae6ade1b7a990956d0fe910175bfdbfe6.zip | |
Notify the record layer upon handshake completion.
ok tb@
| -rw-r--r-- | src/lib/libssl/tls13_handshake.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libssl/tls13_handshake.c b/src/lib/libssl/tls13_handshake.c index 630f81a8a8..aeb490f350 100644 --- a/src/lib/libssl/tls13_handshake.c +++ b/src/lib/libssl/tls13_handshake.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: tls13_handshake.c,v 1.27 2019/02/13 16:28:28 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_handshake.c,v 1.28 2019/02/14 18:06:35 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2018-2019 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2018-2019 Theo Buehler <tb@openbsd.org> |
| 4 | * Copyright (c) 2019 Joel Sing <jsing@openbsd.org> | 4 | * Copyright (c) 2019 Joel Sing <jsing@openbsd.org> |
| @@ -294,8 +294,10 @@ tls13_handshake_perform(struct tls13_ctx *ctx) | |||
| 294 | if ((action = tls13_handshake_active_action(ctx)) == NULL) | 294 | if ((action = tls13_handshake_active_action(ctx)) == NULL) |
| 295 | return TLS13_IO_FAILURE; | 295 | return TLS13_IO_FAILURE; |
| 296 | 296 | ||
| 297 | if (action->handshake_complete) | 297 | if (action->handshake_complete) { |
| 298 | tls13_record_layer_handshake_completed(ctx->rl); | ||
| 298 | return TLS13_IO_SUCCESS; | 299 | return TLS13_IO_SUCCESS; |
| 300 | } | ||
| 299 | 301 | ||
| 300 | if (action->sender == ctx->mode) { | 302 | if (action->sender == ctx->mode) { |
| 301 | if ((ret = tls13_handshake_send_action(ctx, action)) <= 0) | 303 | if ((ret = tls13_handshake_send_action(ctx, action)) <= 0) |
