From: Vsevolod Stakhov Date: Fri, 19 Oct 2018 16:28:31 +0000 (+0100) Subject: [Minor] Improve SSL connection error message X-Git-Tag: 1.8.2~187 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcbfc96014cc456612cac4b4697f7e324f612f88;p=thirdparty%2Frspamd.git [Minor] Improve SSL connection error message --- diff --git a/src/libutil/http.c b/src/libutil/http.c index 637548dacd..3936ac34cf 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -29,6 +29,8 @@ #include "libutil/regexp.h" #include "libserver/url.h" +#include + #define ENCRYPTED_VERSION " HTTP/1.0" struct _rspamd_http_privbuf { @@ -2327,7 +2329,10 @@ rspamd_http_connection_write_message_common (struct rspamd_http_connection *conn priv->ptv, rspamd_http_event_handler, rspamd_http_ssl_err_handler, conn)) { - err = g_error_new (HTTP_ERROR, errno, "ssl connection error"); + err = g_error_new (HTTP_ERROR, errno, + "ssl connection error: ssl error=%s, errno=%s", + ERR_error_string (ERR_get_error (), NULL), + strerror (errno)); rspamd_http_connection_ref (conn); conn->error_handler (conn, err); rspamd_http_connection_unref (conn);