Software /
code /
prosody
Comparison
util/sasl_cyrus.lua @ 3441:d4f89802cf1e
util.sasl, util.sasl_cyrus: Removed a ton of unused variables.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 03 Aug 2010 17:11:40 +0500 |
parent | 3428:8a12ae696687 |
child | 3443:1159e007cc8f |
comparison
equal
deleted
inserted
replaced
3440:381385dcb596 | 3441:d4f89802cf1e |
---|---|
11 -- | 11 -- |
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 local cyrussasl = require "cyrussasl"; | 14 local cyrussasl = require "cyrussasl"; |
15 local log = require "util.logger".init("sasl_cyrus"); | 15 local log = require "util.logger".init("sasl_cyrus"); |
16 local array = require "util.array"; | |
17 | 16 |
18 local tostring = tostring; | |
19 local pairs, ipairs = pairs, ipairs; | |
20 local t_insert, t_concat = table.insert, table.concat; | |
21 local s_match = string.match; | |
22 local setmetatable = setmetatable | 17 local setmetatable = setmetatable |
23 | 18 |
24 local keys = keys; | |
25 | |
26 local print = print | |
27 local pcall = pcall | 19 local pcall = pcall |
28 local s_match, s_gmatch = string.match, string.gmatch | 20 local s_match, s_gmatch = string.match, string.gmatch |
29 | 21 |
30 local sasl_errstring = { | 22 local sasl_errstring = { |
31 -- SASL result codes -- | 23 -- SASL result codes -- |