aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl.lua
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2009-08-09 21:19:03 +0200
committerTobias Markmann <tm@ayena.de>2009-08-09 21:19:03 +0200
commit7ef662388b28c77bda969c1ea28995b7988a8fb6 (patch)
tree1c415df5260e7c56e459d381d808be6743233cb6 /util/sasl.lua
parenta108ff1ca61ac9f73ef99dbd7b0c054811afe5ff (diff)
downloadprosody-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.lua2
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