aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-11-19 14:45:20 +0100
committerKim Alvefur <zash@zash.se>2014-11-19 14:45:20 +0100
commit47389e6d48107288b1489da9b253adad7a2bdb17 (patch)
treead270716e13437edd1212e1ea469e70902ae6cfc /plugins
parent1f45df5a0b5aa82837b1981d4a0e17d6fd3bbad8 (diff)
downloadprosody-47389e6d48107288b1489da9b253adad7a2bdb17.tar.gz
prosody-47389e6d48107288b1489da9b253adad7a2bdb17.zip
mod_saslauth: Make it easier to support multiple channel binding methonds
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_saslauth.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index 6cb3e3a7..7e9b0720 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -215,7 +215,7 @@ module:hook("stanza/urn:ietf:params:xml:ns:xmpp-sasl:abort", function(event)
end);
local function tls_unique(self)
- return self.userdata:getpeerfinished();
+ return self.userdata["tls-unique"]:getpeerfinished();
end
local mechanisms_attr = { xmlns='urn:ietf:params:xml:ns:xmpp-sasl' };
@@ -237,7 +237,9 @@ module:hook("stream-features", function(event)
if socket.getpeerfinished then
sasl_handler:add_cb_handler("tls-unique", tls_unique);
end
- sasl_handler["userdata"] = socket;
+ sasl_handler["userdata"] = {
+ ["tls-unique"] = socket;
+ };
end
end
local mechanisms = st.stanza("mechanisms", mechanisms_attr);