diff options
author | Tobias Markmann <tm@ayena.de> | 2009-08-09 21:19:03 +0200 |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2009-08-09 21:19:03 +0200 |
commit | 7ef662388b28c77bda969c1ea28995b7988a8fb6 (patch) | |
tree | 1c415df5260e7c56e459d381d808be6743233cb6 /util/sasl.lua | |
parent | a108ff1ca61ac9f73ef99dbd7b0c054811afe5ff (diff) | |
download | prosody-7ef662388b28c77bda969c1ea28995b7988a8fb6.tar.gz prosody-7ef662388b28c77bda969c1ea28995b7988a8fb6.zip |
Moving realm at the beginning of the digest-md5 message send by the server.
Diffstat (limited to 'util/sasl.lua')
-rw-r--r-- | util/sasl.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sasl.lua b/util/sasl.lua index 008b6575..444d4cf4 100644 --- a/util/sasl.lua +++ b/util/sasl.lua @@ -70,11 +70,11 @@ local function new_digest_md5(realm, credentials_handler) 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 |