diff options
author | Tobias Markmann <tm@ayena.de> | 2011-01-17 16:50:21 +0100 |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2011-01-17 16:50:21 +0100 |
commit | a1c646ad48267cdfaefb27e77f335969c7c4cc3f (patch) | |
tree | 226b83571d7050b871c36d8401d0c0693195f287 /plugins | |
parent | e7a197972565c5a0e3f1fa538c693f115ebdb7e8 (diff) | |
download | prosody-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.lua | 4 |
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); |