Diff

util/sasl.lua @ 2187:f0a85d11823e sasl

Getting PLAIN mechanism work with the new API.
author Tobias Markmann <tm@ayena.de>
date Fri, 13 Nov 2009 09:21:19 +0100
parent 2186:1112871916eb
child 2188:1fd38975addd
line wrap: on
line diff
--- a/util/sasl.lua	Thu Nov 12 21:57:37 2009 +0100
+++ b/util/sasl.lua	Fri Nov 13 09:21:19 2009 +0100
@@ -30,6 +30,8 @@
 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 @@
 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;