diff options
author | jsing <> | 2018-11-09 04:54:42 +0000 |
---|---|---|
committer | jsing <> | 2018-11-09 04:54:42 +0000 |
commit | e67eb8087c3d0d0e7689c7c0cb6b55a14b7b1c46 (patch) | |
tree | 21542e04a0876d6a0260d85857afeeed728cc7f4 /src/lib | |
parent | b00ffbc817f1682ca23ea3df7ea4c10f2d095e75 (diff) | |
download | openbsd-e67eb8087c3d0d0e7689c7c0cb6b55a14b7b1c46.tar.gz openbsd-e67eb8087c3d0d0e7689c7c0cb6b55a14b7b1c46.tar.bz2 openbsd-e67eb8087c3d0d0e7689c7c0cb6b55a14b7b1c46.zip |
Correct defines for writer tests in connect/accept loops.
ok tb@
Diffstat (limited to 'src/lib')
-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 { |