comparison mod_sasl2_sm/mod_sasl2_sm.lua @ 5060:bc491065c221

mod_sasl2_bind2, mod_sasl2_sm: Remove bind2 <features/> wrapper element This was dropped from the spec. It's more consistent with SASL2.
author Matthew Wild <mwild1@gmail.com>
date Tue, 27 Sep 2022 18:23:42 +0100
parents c0d243b27e64
children c92c87daa09e
comparison
equal deleted inserted replaced
5059:5f1120c284c5 5060:bc491065c221
55 module:hook("advertise-bind-features", function (event) 55 module:hook("advertise-bind-features", function (event)
56 event.features:tag("feature", { var = xmlns_sm }):up(); 56 event.features:tag("feature", { var = xmlns_sm }):up();
57 end); 57 end);
58 58
59 module:hook("enable-bind-features", function (event) 59 module:hook("enable-bind-features", function (event)
60 local sm_enable = event.features:get_child("enable", xmlns_sm); 60 local sm_enable = event.request:get_child("enable", xmlns_sm);
61 if not sm_enable then return; end 61 if not sm_enable then return; end
62 62
63 local sm_result; 63 local sm_result;
64 local enabled, err = mod_smacks.do_enable(event.session, sm_enable); 64 local enabled, err = mod_smacks.do_enable(event.session, sm_enable);
65 if not enabled then 65 if not enabled then