Changeset

5028:1f2d2bfd29dd

mod_sasl2: Add event for other modules to advertise inline features
author Matthew Wild <mwild1@gmail.com>
date Fri, 02 Sep 2022 16:20:13 +0100
parents 5027:8b9ab351dd78
children 5029:56b9f0b1409f
files mod_sasl2/mod_sasl2.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_sasl2/mod_sasl2.lua	Mon Aug 29 17:41:16 2022 +0100
+++ b/mod_sasl2/mod_sasl2.lua	Fri Sep 02 16:20:13 2022 +0100
@@ -54,6 +54,10 @@
 	end
 
 	features:add_direct_child(mechanisms);
+
+	local inline = st.stanza("inline", { xmlns = xmlns_sasl2 });
+	module:fire_event("advertise-sasl-features", { session = origin, features = inline });
+	features:add_direct_child(inline);
 end, 1);
 
 local function handle_status(session, status, ret, err_msg)