util.sasl: Make registerMechanism a public function

This commit is contained in:
Matthew Wild 2012-06-18 16:57:46 +01:00
parent 49d3586dc1
commit 9d379a1dae

View file

@ -35,7 +35,7 @@ local mechanisms = {};
local backend_mechanism = {};
-- register a new SASL mechanims
local function registerMechanism(name, backends, f)
function registerMechanism(name, backends, f)
assert(type(name) == "string", "Parameter name MUST be a string.");
assert(type(backends) == "string" or type(backends) == "table", "Parameter backends MUST be either a string or a table.");
assert(type(f) == "function", "Parameter f MUST be a function.");