Software /
code /
prosody
Changeset
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 |
parents | 10336:55dccd4a3522 |
children | 10338:56a0f68b7797 |
files | plugins/mod_saslauth.lua |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
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);