# HG changeset patch # User Kim Alvefur # Date 1571168239 -7200 # Node ID 39111f0e83d021626a2777bb8fd9b328aa3361e1 # Parent 55dccd4a352256ebae1ca00bc2385260f8369032 mod_saslauth: Log (debug) messages about channel binding diff -r 55dccd4a3522 -r 39111f0e83d0 plugins/mod_saslauth.lua --- 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);