Comparison

plugins/mod_auth_internal_hashed.lua @ 4763:322b7335fbf3

mod_auth_internal_hashed: Remove unused imports
author Matthew Wild <mwild1@gmail.com>
date Sat, 28 Apr 2012 03:55:25 +0100
parent 4603:6900c9484834
child 4764:0df5b2d5dff3
comparison
equal deleted inserted replaced
4762:943f9f860ab4 4763:322b7335fbf3
7 -- COPYING file in the source package for more information. 7 -- COPYING file in the source package for more information.
8 -- 8 --
9 9
10 local datamanager = require "util.datamanager"; 10 local datamanager = require "util.datamanager";
11 local log = require "util.logger".init("auth_internal_hashed"); 11 local log = require "util.logger".init("auth_internal_hashed");
12 local type = type;
13 local error = error;
14 local ipairs = ipairs;
15 local hashes = require "util.hashes";
16 local jid_bare = require "util.jid".bare;
17 local getAuthenticationDatabaseSHA1 = require "util.sasl.scram".getAuthenticationDatabaseSHA1; 12 local getAuthenticationDatabaseSHA1 = require "util.sasl.scram".getAuthenticationDatabaseSHA1;
18 local config = require "core.configmanager";
19 local usermanager = require "core.usermanager"; 13 local usermanager = require "core.usermanager";
20 local generate_uuid = require "util.uuid".generate; 14 local generate_uuid = require "util.uuid".generate;
21 local new_sasl = require "util.sasl".new; 15 local new_sasl = require "util.sasl".new;
22 local nodeprep = require "util.encodings".stringprep.nodeprep; 16 local nodeprep = require "util.encodings".stringprep.nodeprep;
23 local hosts = hosts;
24 17
25 -- COMPAT w/old trunk: remove these two lines before 0.8 release 18 -- COMPAT w/old trunk: remove these two lines before 0.8 release
26 local hmac_sha1 = require "util.hmac".sha1; 19 local hmac_sha1 = require "util.hmac".sha1;
27 local sha1 = require "util.hashes".sha1; 20 local sha1 = require "util.hashes".sha1;
28 21
44 function from_hex(hex_string) 37 function from_hex(hex_string)
45 return hex_string:gsub("..", replace_hex_with_byte); 38 return hex_string:gsub("..", replace_hex_with_byte);
46 end 39 end
47 end 40 end
48 41
49
50 local prosody = _G.prosody;
51 42
52 -- Default; can be set per-user 43 -- Default; can be set per-user
53 local iteration_count = 4096; 44 local iteration_count = 4096;
54 45
55 function new_hashpass_provider(host) 46 function new_hashpass_provider(host)