diff options
author | Matt Caswell <matt@openssl.org> | 2017-02-27 20:55:04 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-03-02 17:44:16 +0000 |
commit | ade1e88806461df5516525a8f36e707820167e01 (patch) | |
tree | f76fa1687d67887090a90d431297d87130e97c9f /apps/s_client.c | |
parent | 3eaa4170956dc7ca2a0c9fc9414dc42cac7b426e (diff) |
Updates to s_server and s_client for the latest early_data API changes
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2737)
Diffstat (limited to 'apps/s_client.c')
-rw-r--r-- | apps/s_client.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/s_client.c b/apps/s_client.c index c11a634ac9..fdfd90bf1e 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -2375,9 +2375,7 @@ int s_client_main(int argc, char **argv) if (!BIO_read_ex(edfile, cbuf, BUFSIZZ, &readbytes)) finish = 1; - while (finish ? !SSL_write_early_finish(con) - : !SSL_write_early(con, cbuf, readbytes, - &writtenbytes)) { + while (!SSL_write_early(con, cbuf, readbytes, &writtenbytes)) { switch (SSL_get_error(con, 0)) { case SSL_ERROR_WANT_WRITE: case SSL_ERROR_WANT_ASYNC: |