diff options
author | Kim Alvefur <zash@zash.se> | 2019-10-15 21:37:19 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-10-15 21:37:19 +0200 |
commit | 96b4d467b9173a8dd3f758ab692f108c28b2f523 (patch) | |
tree | c5ce876e57aac3d7e273e31c57899e2a9120f4e0 /plugins | |
parent | d105e33dd52253617720739913cc6fb15bdbb15e (diff) | |
download | prosody-96b4d467b9173a8dd3f758ab692f108c28b2f523.tar.gz prosody-96b4d467b9173a8dd3f758ab692f108c28b2f523.zip |
mod_saslauth: Log (debug) messages about channel binding
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_saslauth.lua | 5 |
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); |