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>
This commit is contained in:
Matt Caswell
2015-10-06 14:04:11 +01:00
parent 9920a58eb2
commit e1b9840ed7
4 changed files with 17 additions and 16 deletions

View File

@@ -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))