Software /
code /
prosody
Comparison
util/sasl/digest-md5.lua @ 2936:c186b4883b8d
util.sasl.digest-md5: Removed unnnecessary check (which included a nil global access).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 24 Mar 2010 00:07:17 +0500 |
parent | 2569:8474ea768c89 |
child | 2998:36c169ed1576 |
child | 3092:d32935878661 |
comparison
equal
deleted
inserted
replaced
2935:4e4d0d899d9d | 2936:c186b4883b8d |
---|---|
32 local function digest(self, message) | 32 local function digest(self, message) |
33 --TODO complete support for authzid | 33 --TODO complete support for authzid |
34 | 34 |
35 local function serialize(message) | 35 local function serialize(message) |
36 local data = "" | 36 local data = "" |
37 | |
38 if type(message) ~= "table" then error("serialize needs an argument of type table.") end | |
39 | 37 |
40 -- testing all possible values | 38 -- testing all possible values |
41 if message["realm"] then data = data..[[realm="]]..message.realm..[[",]] end | 39 if message["realm"] then data = data..[[realm="]]..message.realm..[[",]] end |
42 if message["nonce"] then data = data..[[nonce="]]..message.nonce..[[",]] end | 40 if message["nonce"] then data = data..[[nonce="]]..message.nonce..[[",]] end |
43 if message["qop"] then data = data..[[qop="]]..message.qop..[[",]] end | 41 if message["qop"] then data = data..[[qop="]]..message.qop..[[",]] end |