Software /
code /
prosody
Comparison
util/sasl.lua @ 2997:6ccaefea80ec
Merge with tip.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Fri, 12 Mar 2010 18:41:05 +0100 |
parent | 2996:b0515ed4d9d7 |
parent | 2735:65bbc4b67733 |
child | 2998:36c169ed1576 |
comparison
equal
deleted
inserted
replaced
2996:b0515ed4d9d7 | 2997:6ccaefea80ec |
---|---|
120 --if message == "" or message == nil then return "failure", "malformed-request" end | 120 --if message == "" or message == nil then return "failure", "malformed-request" end |
121 return self.mech_i(self, message); | 121 return self.mech_i(self, message); |
122 end | 122 end |
123 | 123 |
124 -- load the mechanisms | 124 -- load the mechanisms |
125 load_mechs = {"plain", "digest-md5", "anonymous", "scram"} | 125 local load_mechs = {"plain", "digest-md5", "anonymous", "scram"} |
126 for _, mech in ipairs(load_mechs) do | 126 for _, mech in ipairs(load_mechs) do |
127 local name = "util.sasl."..mech; | 127 local name = "util.sasl."..mech; |
128 local m = require(name); | 128 local m = require(name); |
129 m.init(registerMechanism) | 129 m.init(registerMechanism) |
130 end | 130 end |