util/sasl/anonymous.lua

Thu, 18 Sep 2014 18:59:34 +0200

author
Kim Alvefur <zash@zash.se>
date
Thu, 18 Sep 2014 18:59:34 +0200
changeset 354
58cd27b74ba5
child 358
a8f6fd6a70ed
permissions
-rw-r--r--

Almost a SASL framework, supports negotiation and challenge-response, mechanism code split out into util/sasl/


return function (stream, mechanisms, preference)
	mechanisms["ANONYMOUS"] = function ()
		return coroutine.yield() == "success";
	end;
	preference["ANONYMOUS"] = 0;
end

mercurial