Browse files

Differentiate TLS fail/error cases

Found by: michaelortmann
Patch by: michaelortmann

Without this patch 2 different code paths produce same error message, so one can't tell from the log which code path was taken. Original code comment says the code was copied from man page example, but the (current) example of ssl_set_info_callback(3) has different error messages.
  • Loading branch information...
michaelortmann authored and vanosg committed Aug 27, 2018
1 parent 8d2941f commit 409d456fe6b93f85eb9e9104e7f1d01cf850c3af
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/tls.c
@@ -665,7 +665,7 @@ void ssl_info(SSL *ssl, int where, int ret)
/* Errors to be ignored for non-blocking */
debug1("TLS: awaiting more %s", (err & SSL_ERROR_WANT_READ) ? "reads" : "writes");
} else {
putlog(data->loglevel, "*", "TLS: failed in: %s.",
putlog(data->loglevel, "*", "TLS: error in: %s.",

0 comments on commit 409d456

Please sign in to comment.