aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2011-01-17 16:50:21 +0100
committerTobias Markmann <tm@ayena.de>2011-01-17 16:50:21 +0100
commita1c646ad48267cdfaefb27e77f335969c7c4cc3f (patch)
tree226b83571d7050b871c36d8401d0c0693195f287 /plugins
parente7a197972565c5a0e3f1fa538c693f115ebdb7e8 (diff)
downloadprosody-a1c646ad48267cdfaefb27e77f335969c7c4cc3f.tar.gz
prosody-a1c646ad48267cdfaefb27e77f335969c7c4cc3f.zip
mod_saslauth: Add channel binding handler for tls-unique channel binding.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_saslauth.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index 2b3b59a9..822be62b 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -246,8 +246,10 @@ module:hook("stream-features", function(event)
return;
end
origin.sasl_handler = usermanager_get_sasl_handler(module.host);
-
if origin.secure then
+ origin.sasl_handler:add_cb_handler("tls-unique", function(self)
+ return self.userdata:getpeerfinished();
+ end);
origin.sasl_handler["userdata"] = origin.conn:socket();
end
features:tag("mechanisms", mechanisms_attr);