Ensure s_client and s_server work when read_ahead is set
authorMatt Caswell <matt@openssl.org>
Fri, 12 Feb 2016 13:33:45 +0000 (13:33 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 7 Mar 2016 21:39:27 +0000 (21:39 +0000)
commitfd068d50c4e19b6e860a303a6bec1c1803f5465e
treee12aa7b9a5fa9ea5d5a0c584746089c471ed271b
parent49580f25b3e6239a277c9fc2708c0354f419ec17
Ensure s_client and s_server work when read_ahead is set

Previously s_client and s_server relied on using SSL_pending() which does
not take into account read_ahead. For read pipelining to work, read_ahead
gets set automatically. Therefore s_client and s_server have been
converted to use SSL_has_pending() instead.

Reviewed-by: Tim Hudson <tjh@openssl.org>
apps/s_client.c
apps/s_server.c