Changeset

1657:1fe566011e2b

Moving realm at the beginning of the digest-md5 message send by the server.
author Tobias Markmann <tm@ayena.de>
date Sun, 09 Aug 2009 21:19:03 +0200
parents 1656:cf9220a364cd
children 1658:0baa849761b6
files util/sasl.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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