aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2022-09-21 15:00:06 +0100
committerMatthew Wild <mwild1@gmail.com>2022-09-21 15:00:06 +0100
commitafa583dfcdcf1e3a53ccb88691985a1c691046d0 (patch)
tree22af2ffcf5f9800df863f627906f48e5b679baf0 /plugins
parent473c68770eea1e3c96736b82f10eda5badcd63d9 (diff)
downloadprosody-afa583dfcdcf1e3a53ccb88691985a1c691046d0.tar.gz
prosody-afa583dfcdcf1e3a53ccb88691985a1c691046d0.zip
mod_saslauth: Put <sasl-channel-binding> in stream:features per XEP-0440 0.4.0
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_saslauth.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index ddef3f17..4c8858cb 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -321,15 +321,15 @@ module:hook("stream-features", function(event)
for mechanism in usable_mechanisms do
mechanisms:tag("mechanism"):text(mechanism):up();
end
+ features:add_child(mechanisms);
if not channel_bindings:empty() then
-- XXX XEP-0440 is Experimental
- mechanisms:tag("sasl-channel-binding", {xmlns='urn:xmpp:sasl-cb:0'})
+ features:tag("sasl-channel-binding", {xmlns='urn:xmpp:sasl-cb:0'})
for channel_binding in channel_bindings do
- mechanisms:tag("channel-binding", {type=channel_binding}):up()
+ features:tag("channel-binding", {type=channel_binding}):up()
end
- mechanisms:up();
+ features:up();
end
- features:add_child(mechanisms);
return;
end