Merge with backout

Fri, 05 Feb 2010 17:46:58 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 05 Feb 2010 17:46:58 +0000
changeset 2569
8474ea768c89
parent 2567
ca6ee2dac8d6 (current diff)
parent 2568
25e1a544a096 (diff)
child 2570
9e69aecad25e

Merge with backout

util/sasl/digest-md5.lua file | annotate | diff | comparison | revisions
--- a/util/sasl/digest-md5.lua	Fri Feb 05 15:05:39 2010 +0000
+++ b/util/sasl/digest-md5.lua	Fri Feb 05 17:46:58 2010 +0000
@@ -212,7 +212,8 @@
 			KD = HA1..":"..response["nonce"]..":"..response["nc"]..":"..response["cnonce"]..":"..response["qop"]..":"..HA2
 			local rspauth = md5(KD, true);
 			self.authenticated = true;
-			return "success", serialize({rspauth = rspauth});
+			--TODO: considering sending the rspauth in a success node for saving one roundtrip; allowed according to http://tools.ietf.org/html/draft-saintandre-rfc3920bis-09#section-7.3.6
+			return "challenge", serialize({rspauth = rspauth});
 		else
 			return "failure", "not-authorized", "The response provided by the client doesn't match the one we calculated."
 		end

mercurial