diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-19 17:28:31 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-19 17:28:31 +0100 |
commit | dcbfc96014cc456612cac4b4697f7e324f612f88 (patch) | |
tree | 6ec2587c9bc5c67d59615a6df735c7223ed755b3 /src/libutil/http.c | |
parent | a1856193b21445f2ae91488b6ba64f2eea20b50b (diff) | |
download | rspamd-dcbfc96014cc456612cac4b4697f7e324f612f88.tar.gz rspamd-dcbfc96014cc456612cac4b4697f7e324f612f88.zip |
[Minor] Improve SSL connection error message
Diffstat (limited to 'src/libutil/http.c')
-rw-r--r-- | src/libutil/http.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libutil/http.c b/src/libutil/http.c index 637548dac..3936ac34c 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -29,6 +29,8 @@ #include "libutil/regexp.h" #include "libserver/url.h" +#include <openssl/err.h> + #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); |