Software /
code /
prosody
Diff
plugins/mod_saslauth.lua @ 10337:39111f0e83d0
mod_saslauth: Log (debug) messages about channel binding
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 15 Oct 2019 21:37:19 +0200 |
parent | 10334:2147942710bb |
child | 10338:56a0f68b7797 |
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua Tue Oct 15 00:21:01 2019 +0200 +++ b/plugins/mod_saslauth.lua Tue Oct 15 21:37:19 2019 +0200 @@ -250,11 +250,16 @@ 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);