Software /
code /
prosody
Changeset
5834:c0cc4e73d9fa
mod_saslauth: Add channel binding handler for tls-unique channel binding.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Mon, 17 Jan 2011 16:50:21 +0100 |
parents | 5833:b1fa865ee6b2 |
children | 5835:a5f4de8c0b40 |
files | plugins/mod_saslauth.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua Mon Jan 17 16:50:21 2011 +0100 +++ b/plugins/mod_saslauth.lua Mon Jan 17 16:50:21 2011 +0100 @@ -246,8 +246,10 @@ 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);