Software /
code /
prosody
Comparison
util/sasl.lua @ 2202:c320517d6b47
Tidying up.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Wed, 18 Nov 2009 22:59:43 +0100 |
parent | 2201:49e4838f9755 |
child | 2203:812130099ab2 |
comparison
equal
deleted
inserted
replaced
2201:49e4838f9755 | 2202:c320517d6b47 |
---|---|
12 -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 12 -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
13 | 13 |
14 | 14 |
15 local md5 = require "util.hashes".md5; | 15 local md5 = require "util.hashes".md5; |
16 local log = require "util.logger".init("sasl"); | 16 local log = require "util.logger".init("sasl"); |
17 local tostring = tostring; | |
18 local st = require "util.stanza"; | 17 local st = require "util.stanza"; |
19 local set = require "util.set"; | 18 local set = require "util.set"; |
20 local array = require "util.array"; | 19 local array = require "util.array"; |
20 local to_unicode = require "util.encodings".idna.to_unicode; | |
21 | |
22 local tostring = tostring; | |
21 local pairs, ipairs = pairs, ipairs; | 23 local pairs, ipairs = pairs, ipairs; |
22 local t_insert, t_concat = table.insert, table.concat; | 24 local t_insert, t_concat = table.insert, table.concat; |
23 local to_unicode = require "util.encodings".idna.to_unicode; | |
24 local s_match = string.match; | 25 local s_match = string.match; |
25 local gmatch = string.gmatch | |
26 local string = string | |
27 local math = require "math" | |
28 local type = type | 26 local type = type |
29 local error = error | 27 local error = error |
30 local print = print | |
31 local setmetatable = setmetatable; | 28 local setmetatable = setmetatable; |
32 local assert = assert; | 29 local assert = assert; |
33 local dofile = dofile; | |
34 local require = require; | 30 local require = require; |
35 | 31 |
36 require "util.iterators" | 32 require "util.iterators" |
37 local keys = keys | 33 local keys = keys |
38 | 34 |