diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/libssl/tls13_handshake.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/tls13_handshake.c b/src/lib/libssl/tls13_handshake.c index ad5849379f..084a977297 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.2 2018/11/09 04:53:28 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_handshake.c,v 1.3 2018/11/09 04:54:42 jsing Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> |
| 4 | * | 4 | * |
| @@ -287,7 +287,7 @@ tls13_connect(struct tls13_ctx *ctx) | |||
| 287 | ctx->mode = TLS13_HS_MODE_CLIENT; | 287 | ctx->mode = TLS13_HS_MODE_CLIENT; |
| 288 | 288 | ||
| 289 | while (tls13_handshake_get_writer(ctx) != TLS13_HS_BOTH_WRITE) { | 289 | while (tls13_handshake_get_writer(ctx) != TLS13_HS_BOTH_WRITE) { |
| 290 | if (tls13_handshake_get_writer(ctx) == TLS13_HS_MODE_CLIENT) { | 290 | if (tls13_handshake_get_writer(ctx) == TLS13_HS_CLIENT_WRITES) { |
| 291 | if (!tls13_handshake_write_action(ctx)) | 291 | if (!tls13_handshake_write_action(ctx)) |
| 292 | return 0; | 292 | return 0; |
| 293 | } else { | 293 | } else { |
| @@ -307,7 +307,7 @@ tls13_accept(struct tls13_ctx *ctx) | |||
| 307 | ctx->mode = TLS13_HS_MODE_SERVER; | 307 | ctx->mode = TLS13_HS_MODE_SERVER; |
| 308 | 308 | ||
| 309 | while (tls13_handshake_get_writer(ctx) != TLS13_HS_BOTH_WRITE) { | 309 | while (tls13_handshake_get_writer(ctx) != TLS13_HS_BOTH_WRITE) { |
| 310 | if (tls13_handshake_get_writer(ctx) == TLS13_HS_MODE_CLIENT) { | 310 | if (tls13_handshake_get_writer(ctx) == TLS13_HS_SERVER_WRITES) { |
| 311 | if (!tls13_handshake_write_action(ctx)) | 311 | if (!tls13_handshake_write_action(ctx)) |
| 312 | return 0; | 312 | return 0; |
| 313 | } else { | 313 | } else { |
