Software /
code /
prosody
Comparison
util/sasl.lua @ 2198:d18b4d22b8da
Making interop with libpurple. (Thanks darkrain).
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Tue, 17 Nov 2009 22:39:18 +0100 |
parent | 2193:8fbbdb11a520 |
child | 2201:49e4838f9755 |
comparison
equal
deleted
inserted
replaced
2197:1509cabb8321 | 2198:d18b4d22b8da |
---|---|
123 --if message == "" or message == nil then return "failure", "malformed-request" end | 123 --if message == "" or message == nil then return "failure", "malformed-request" end |
124 return self.mech_i(self, message); | 124 return self.mech_i(self, message); |
125 end | 125 end |
126 | 126 |
127 -- load the mechanisms | 127 -- load the mechanisms |
128 load_mechs = {"plain", "digest-md5", "anonymous"} | 128 load_mechs = {"plain", "digest-md5", "anonymous", "scram"} |
129 for _, mech in ipairs(load_mechs) do | 129 for _, mech in ipairs(load_mechs) do |
130 local name = "util.sasl."..mech; | 130 local name = "util.sasl."..mech; |
131 local m = require(name); | 131 local m = require(name); |
132 m.init(registerMechanism) | 132 m.init(registerMechanism) |
133 end | 133 end |