summaryrefslogtreecommitdiffstats
path: root/apps/s_client.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-10-06 14:04:11 +0100
committerMatt Caswell <matt@openssl.org>2015-11-20 23:34:35 +0000
commite1b9840ed7c52346e4e203470210f7821158f708 (patch)
tree269940eca3c68159be0d8033e691631138ab31e2 /apps/s_client.c
parent9920a58eb20dcf33abf231e8c9439953ace3c936 (diff)
Add s_client support for waiting for async
s_server already had the ability to wait on an async file descriptor. This adds it to s_client too. Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'apps/s_client.c')
-rw-r--r--apps/s_client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/s_client.c b/apps/s_client.c
index 723e7cba3b..4a93b3de54 100644
--- a/apps/s_client.c
+++ b/apps/s_client.c
@@ -1897,6 +1897,7 @@ int s_client_main(int argc, char **argv)
break;
case SSL_ERROR_WANT_ASYNC:
BIO_printf(bio_c_out, "write A BLOCK\n");
+ wait_for_async(con);
write_ssl = 1;
read_tty = 0;
break;
@@ -1984,6 +1985,7 @@ int s_client_main(int argc, char **argv)
break;
case SSL_ERROR_WANT_ASYNC:
BIO_printf(bio_c_out, "read A BLOCK\n");
+ wait_for_async(con);
write_tty = 0;
read_ssl = 1;
if ((read_tty == 0) && (write_ssl == 0))