From e1b9840ed7c52346e4e203470210f7821158f708 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Tue, 6 Oct 2015 14:04:11 +0100 Subject: 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 --- apps/s_server.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'apps/s_server.c') diff --git a/apps/s_server.c b/apps/s_server.c index 8645c6c203..c90b700af3 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -194,7 +194,6 @@ typedef unsigned int u_int; static RSA *tmp_rsa_cb(SSL *s, int is_export, int keylength); #endif static int not_resumable_sess_cb(SSL *s, int is_forward_secure); -static void wait_for_async(SSL *s); static int sv_body(char *hostname, int s, int stype, unsigned char *context); static int www_body(char *hostname, int s, int stype, unsigned char *context); static int rev_body(char *hostname, int s, int stype, unsigned char *context); @@ -2008,21 +2007,6 @@ static void print_stats(BIO *bio, SSL_CTX *ssl_ctx) SSL_CTX_sess_get_cache_size(ssl_ctx)); } -static void wait_for_async(SSL *s) -{ - int width, fd; - fd_set asyncfds; - - fd = SSL_get_async_wait_fd(s); - if (fd < 0) - return; - - width = fd + 1; - FD_ZERO(&asyncfds); - openssl_fdset(fd, &asyncfds); - select(width, (void *)&asyncfds, NULL, NULL, NULL); -} - static int sv_body(char *hostname, int s, int stype, unsigned char *context) { char *buf = NULL; -- cgit v1.2.3