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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user