# HG changeset patch # User Kim Alvefur # Date 1638124920 -3600 # Node ID 9d57aa79c5d9c9a0f9c8771cb4d765e21ab11bc6 # Parent b86282953663b102208c3124a14ebc55f2ca12e7 mod_sasl2: Remove channel binding Does not take into account that 'tls-unique' is "undefined" when using TLS 1.3 diff -r b86282953663 -r 9d57aa79c5d9 mod_sasl2/mod_sasl2.lua --- a/mod_sasl2/mod_sasl2.lua Fri Nov 26 10:10:02 2021 +0000 +++ b/mod_sasl2/mod_sasl2.lua Sun Nov 28 19:42:00 2021 +0100 @@ -23,10 +23,6 @@ local host = module.host; -local function tls_unique(self) - return self.userdata["tls-unique"]:getpeerfinished(); -end - module:hook("stream-features", function(event) local origin, features = event.origin, event.features; local log = origin.log or module._log; @@ -40,13 +36,7 @@ origin.sasl_handler = sasl_handler; if sasl_handler.add_cb_handler then - local socket = origin.conn:socket(); - if socket.getpeerfinished then - sasl_handler:add_cb_handler("tls-unique", tls_unique); - end - sasl_handler["userdata"] = { - ["tls-unique"] = socket; - }; + -- FIXME bring back channel binding end local mechanisms = st.stanza("mechanisms", { xmlns = xmlns_sasl2 });