mod_sasl2_fast: Add some comments
authorMatthew Wild <mwild1@gmail.com>
Tue, 10 Jan 2023 15:45:25 +0000
changeset 5141 471cbb583a1d
parent 5140 67b2c982bea2
child 5142 4511e90d1d08
mod_sasl2_fast: Add some comments
mod_sasl2_fast/mod_sasl2_fast.lua
--- 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