aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2009-12-22 20:55:35 +0100
committerTobias Markmann <tm@ayena.de>2009-12-22 20:55:35 +0100
commit9dc560b2a89fad84e576287143e4e35b037f0d7f (patch)
treeb2daaf1884b76af82c4d4d00c68e12aa35624c11
parent9d6dd22165165a74c1760e0aaa29939ac228956c (diff)
downloadprosody-9dc560b2a89fad84e576287143e4e35b037f0d7f.tar.gz
prosody-9dc560b2a89fad84e576287143e4e35b037f0d7f.zip
util.sasl_cyrus: Initializing Cyrus SASL library and a bit cleanup.
-rw-r--r--util/sasl_cyrus.lua12
1 files changed, 1 insertions, 11 deletions
diff --git a/util/sasl_cyrus.lua b/util/sasl_cyrus.lua
index a4b3e0d4..49c3d433 100644
--- a/util/sasl_cyrus.lua
+++ b/util/sasl_cyrus.lua
@@ -31,17 +31,7 @@ method.__index = method;
local mechanisms = {};
local backend_mechanism = {};
--- register a new SASL mechanims
-local 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.");
- mechanisms[name] = f
- for _, backend_name in ipairs(backends) do
- if backend_mechanism[backend_name] == nil then backend_mechanism[backend_name] = {}; end
- t_insert(backend_mechanism[backend_name], name);
- end
-end
+pcall(cyrussasl.server_init, "prosody")
-- create a new SASL object which can be used to authenticate clients
function new(realm, service_name)