aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-02-15 23:03:22 +0100
committerKim Alvefur <zash@zash.se>2017-02-15 23:03:22 +0100
commita193e1d9f4720f377867bc8122f62a0a4297a9e5 (patch)
treef49192ac56b5b07cd5e83664c9884001edf564d3
parentbb3a3dfe978926a6d918598c903b5163ab6a20e9 (diff)
downloadprosody-a193e1d9f4720f377867bc8122f62a0a4297a9e5.tar.gz
prosody-a193e1d9f4720f377867bc8122f62a0a4297a9e5.zip
mod_tls: Log reasons for not being able to do TLS
-rw-r--r--plugins/mod_tls.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua
index 2b265032..3903a760 100644
--- a/plugins/mod_tls.lua
+++ b/plugins/mod_tls.lua
@@ -63,6 +63,7 @@ end
local function can_do_tls(session)
if not session.conn.starttls then
+ session.log("debug", "Underlying connection does not support STARTTLS");
return false;
elseif session.ssl_ctx ~= nil then
return session.ssl_ctx;
@@ -77,6 +78,7 @@ local function can_do_tls(session)
session.ssl_ctx = ssl_ctx_s2sout;
session.ssl_cfg = ssl_cfg_s2sout;
else
+ session.log("debug", "Unknown session type, don't know which TLS context to use");
return false;
end
if not session.ssl_ctx then