mod_saslauth: Add channel binding handler for tls-unique channel binding.

This commit is contained in:
Tobias Markmann 2011-01-17 16:50:21 +01:00
parent e7a1979725
commit a1c646ad48

View file

@ -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);