Changeset

5137:471cbb583a1d

mod_sasl2_fast: Add some comments
author Matthew Wild <mwild1@gmail.com>
date Tue, 10 Jan 2023 15:45:25 +0000
parents 5136:67b2c982bea2
children 5138:4511e90d1d08
files mod_sasl2_fast/mod_sasl2_fast.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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