Sun, 09 Aug 2009 21:19:03 +0200
Moving realm at the beginning of the digest-md5 message send by the server.
util/sasl.lua | file | annotate | diff | comparison | revisions |
--- a/util/sasl.lua Sat Aug 08 21:13:18 2009 +0200 +++ b/util/sasl.lua Sun Aug 09 21:19:03 2009 +0200 @@ -70,11 +70,11 @@ if type(message) ~= "table" then error("serialize needs an argument of type table.") end -- testing all possible values + if message["realm"] then data = data..[[realm="]]..message.realm..[[",]] end if message["nonce"] then data = data..[[nonce="]]..message.nonce..[[",]] end if message["qop"] then data = data..[[qop="]]..message.qop..[[",]] end if message["charset"] then data = data..[[charset=]]..message.charset.."," end if message["algorithm"] then data = data..[[algorithm=]]..message.algorithm.."," end - if message["realm"] then data = data..[[realm="]]..message.realm..[[",]] end if message["rspauth"] then data = data..[[rspauth=]]..message.rspauth.."," end data = data:gsub(",$", "") return data