Comparison

util/sasl.lua @ 17:9a2685f39f9f

module table was missing
author Tobias Markmann <tm@ayena.de>
date Tue, 26 Aug 2008 14:11:52 +0200
parent 16:ba8e796f9f94
child 32:a4de5ab077ab
comparison
equal deleted inserted replaced
16:ba8e796f9f94 17:9a2685f39f9f
1 require "base64" 1 require "base64"
2 sasl = {}
2 3
3 function sasl:new_plain(onAuth, onSuccess, onFail, onWrite) 4 function sasl:new_plain(onAuth, onSuccess, onFail, onWrite)
4 local object = { mechanism = "PLAIN", onAuth = onAuth, onSuccess = onSuccess, onFail = onFail, 5 local object = { mechanism = "PLAIN", onAuth = onAuth, onSuccess = onSuccess, onFail = onFail,
5 onWrite = onWrite} 6 onWrite = onWrite}
6 local challenge = base64.encode(""); 7 local challenge = base64.encode("");