Software /
code /
prosody
Diff
util/sasl.lua @ 2203:812130099ab2
Cleaning up.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Wed, 18 Nov 2009 23:25:27 +0100 |
parent | 2202:c320517d6b47 |
child | 2212:7cb6460b18d8 |
line wrap: on
line diff
--- a/util/sasl.lua Wed Nov 18 22:59:43 2009 +0100 +++ b/util/sasl.lua Wed Nov 18 23:25:27 2009 +0100 @@ -91,13 +91,13 @@ end -- set the forbidden mechanisms -function method:forbidden( forbidden ) - if forbidden then +function method:forbidden( restrict ) + if restrict then -- set forbidden - self.forbidden = set.new(forbidden); + self.restrict = set.new(restrict); else -- get forbidden - return array.collect(self.forbidden:items()); + return array.collect(self.restrict:items()); end end @@ -107,7 +107,7 @@ for backend, f in pairs(self.profile) do if backend_mechanism[backend] then for _, mechanism in ipairs(backend_mechanism[backend]) do - if not sasl_i.forbidden:contains(mechanism) then + if not sasl_i.restrict:contains(mechanism) then mechanisms[mechanism] = true; end end