aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl.lua
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2009-11-13 09:21:19 +0100
committerTobias Markmann <tm@ayena.de>2009-11-13 09:21:19 +0100
commit72e185fa03df69754ea24322db832e85b015c379 (patch)
tree9abc5390704f485e33f71fba614f7f7a55cfb08e /util/sasl.lua
parent5554c334177b01d969cd5feb4d73ec2af0c80e7a (diff)
downloadprosody-72e185fa03df69754ea24322db832e85b015c379.tar.gz
prosody-72e185fa03df69754ea24322db832e85b015c379.zip
Getting PLAIN mechanism work with the new API.
Diffstat (limited to 'util/sasl.lua')
-rw-r--r--util/sasl.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/util/sasl.lua b/util/sasl.lua
index 94ed3ac9..e9b466ee 100644
--- a/util/sasl.lua
+++ b/util/sasl.lua
@@ -30,6 +30,8 @@ local error = error
local print = print
local setmetatable = setmetatable;
local assert = assert;
+local dofile = dofile;
+local require = require;
require "util.iterators"
local keys = keys
@@ -120,8 +122,9 @@ function method:process(message)
end
-- load the mechanisms
-require "sasl.plain"
-require "sasl.digest-md5"
-require "sasl.scram"
+m = require "util.sasl.plain"
+m.init(registerMechanism)
+--dofile "util/sasl/digest-md5.lua"
+--dofile "util/sasl/scram.lua"
return _M;