boringssl/tool
David Benjamin e7ca8a5d78 Fix bssl client/server's error-handling.
Rather than printing the SSL_ERROR_* constants, print the actual error.
This should be a bit more understandable. Debugging this also uncovered
some other issues on Windows:

- We were mixing up C runtime and Winsock errors, which are separate in
  Windows.

- The thread local implementation interferes with WSAGetLastError due to
  a quirk of TlsGetValue. This could affect other Windows consumers.
  (Chromium uses a custom BIO, so it isn't affected.)

- SocketSetNonBlocking also interferes with WSAGetLastError.

- Listen for FD_CLOSE along with FD_READ. Connection close does not
  signal FD_READ. (The select loop only barely works on Windows anyway
  due to issues with stdin and line buffering, but if we take stdin out
  of the equation, FD_CLOSE can be tested.)

Change-Id: If991259915acc96606a314fbe795fe6ea1e295e8
Reviewed-on: https://boringssl-review.googlesource.com/28125
Commit-Queue: Steven Valdez <svaldez@google.com>
Reviewed-by: Steven Valdez <svaldez@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
2018-05-07 15:44:08 +00:00
..
args.cc Revert "Move C++ helpers into |bssl| namespace." 2016-07-12 08:09:33 -07:00
ciphers.cc Use getters in tools/ciphers.cc and add -openssl-name flag. 2017-08-18 00:10:31 +00:00
client.cc Fix bssl client/server's error-handling. 2018-05-07 15:44:08 +00:00
CMakeLists.txt Add a basic signing tool. 2017-04-05 23:32:13 +00:00
const.cc Unwind multiprime RSA support. 2017-04-12 23:14:57 +00:00
digest.cc Correctness fixes for NaCl and other platforms. 2016-11-09 19:06:10 +00:00
file.cc Add a basic signing tool. 2017-04-05 23:32:13 +00:00
generate_ed25519.cc Add early data input from file. 2017-11-30 17:29:45 +00:00
genrsa.cc Unwind RSA_generate_multi_prime_key. 2017-04-11 18:15:20 +00:00
internal.h Add early data input from file. 2017-11-30 17:29:45 +00:00
pkcs12.cc Work around language and compiler bug in memcpy, etc. 2016-12-21 20:34:47 +00:00
rand.cc Fix miscellaneous clang-tidy warnings. 2017-08-01 20:39:46 +00:00
server.cc Fix bssl client/server's error-handling. 2018-05-07 15:44:08 +00:00
sign.cc Align EVP_PKEY Ed25519 API with upstream. 2017-06-12 12:04:11 +00:00
speed.cc tool: Move the RSA specific code from |Speed| to |SpeedRSA|. 2018-04-13 17:35:13 +00:00
tool.cc First part of the FIPS module. 2017-04-07 00:05:34 +00:00
transport_common.cc Fix bssl client/server's error-handling. 2018-05-07 15:44:08 +00:00
transport_common.h Fix bssl client/server's error-handling. 2018-05-07 15:44:08 +00:00