diff mod_sasl2/mod_sasl2.lua @ 4792:9d57aa79c5d9

mod_sasl2: Remove channel binding Does not take into account that 'tls-unique' is "undefined" when using TLS 1.3
author Kim Alvefur <zash@zash.se>
date Sun, 28 Nov 2021 19:42:00 +0100
parents 5ae2e865eea0
children 9c7635911c56
line wrap: on
line diff
--- 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 });