Rewrite log_trace to be thread-safe and some cleanups

This commit is contained in:
2016-08-08 22:31:29 +03:00
parent e9f3673bfd
commit dcd58d8281
8 changed files with 127 additions and 74 deletions

View File

@@ -52,7 +52,7 @@ static void* servlet(void *args) /* Serve the connection -- threadable */
if (ret <= 0) {
char ret_str[1024];
ERR_error_string_n(SSL_get_error(agent->ssl, ret), ret_str, sizeof(ret_str));
log_trace(INFO, "SSL_accept() failed. Reason below:\n%s", ret_str);
log_trace(WARNING, "SSL_accept() failed. Reason below:\n%s", ret_str);
} else {
show_certs(agent->ssl);
do {