Skip to content
Commit 75dd6c1a authored by Matt Caswell's avatar Matt Caswell
Browse files

Fix s_client/s_server waiting for stdin on Windows



On Windows we were using the function _kbhit() to determine whether there
was input waiting in stdin for us to read. Actually all this does is work
out whether there is a keyboard press event waiting to be processed in the
input buffer. This only seems to work in a standard Windows console (not
Msys console) and also doesn't work if you redirect the input from some
other source (as we do in TLSProxy tests). This commit changes things to
work differently depending on whether we are on the Windows console or not.

RT#4255

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
parent 384f08dc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment