mod_sasl2_fast/mod_sasl2_fast.lua
changeset 5141 471cbb583a1d
parent 5099 745c7f4cca40
child 5286 0566a71a7076
--- a/mod_sasl2_fast/mod_sasl2_fast.lua	Tue Jan 10 15:45:03 2023 +0000
+++ b/mod_sasl2_fast/mod_sasl2_fast.lua	Tue Jan 10 15:45:25 2023 +0000
@@ -102,8 +102,10 @@
 	end
 	local sasl_handler = get_sasl_handler(username);
 	if not sasl_handler then return; end
+	-- Copy channel binding info from primary SASL handler
 	sasl_handler.profile.cb = session.sasl_handler.profile.cb;
 	sasl_handler.userdata = session.sasl_handler.userdata;
+	-- Store this handler, in case we later want to use it for authenticating
 	session.fast_sasl_handler = sasl_handler;
 	local fast = st.stanza("fast", { xmlns = xmlns_fast });
 	for mech in pairs(sasl_handler:mechanisms()) do