Software /
code /
prosody
Changeset
5862:7e83c8448cd6
util.sasl: Make registerMechanism a public function (again)
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 07 Oct 2013 17:57:06 -0400 |
parents | 5860:87e2fafba5df |
children | 5863:abcbaf7f2e8e |
files | util/sasl.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/sasl.lua Mon Oct 07 12:56:21 2013 +0200 +++ b/util/sasl.lua Mon Oct 07 17:57:06 2013 -0400 @@ -48,7 +48,7 @@ local mechanism_channelbindings = {}; -- register a new SASL mechanims -local function registerMechanism(name, backends, f, cb_backends) +function registerMechanism(name, backends, f, cb_backends) 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.");