aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_saslauth.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-10-15 21:37:19 +0200
committerKim Alvefur <zash@zash.se>2019-10-15 21:37:19 +0200
commita375a343326a80bab8d98d86118772d1e0791be1 (patch)
treec5ce876e57aac3d7e273e31c57899e2a9120f4e0 /plugins/mod_saslauth.lua
parent945ec3c73e6dfc66767e7283af345f5d0eaa2b8b (diff)
downloadprosody-a375a343326a80bab8d98d86118772d1e0791be1.tar.gz
prosody-a375a343326a80bab8d98d86118772d1e0791be1.zip
mod_saslauth: Log (debug) messages about channel binding
Diffstat (limited to 'plugins/mod_saslauth.lua')
-rw-r--r--plugins/mod_saslauth.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index 251c0c4e..cfaa1f9c 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -250,11 +250,16 @@ module:hook("stream-features", function(event)
if sasl_handler.add_cb_handler then
local socket = origin.conn:socket();
if socket.getpeerfinished then
+ log("debug", "Channel binding 'tls-unique' supported");
sasl_handler:add_cb_handler("tls-unique", tls_unique);
+ else
+ log("debug", "Channel binding 'tls-unique' not supported (by LuaSec?)");
end
sasl_handler["userdata"] = {
["tls-unique"] = socket;
};
+ else
+ log("debug", "Channel binding not supported by SASL handler");
end
end
local mechanisms = st.stanza("mechanisms", mechanisms_attr);