# HG changeset patch # User Matthew Wild # Date 1265392006 0 # Node ID 25e1a544a096d8ff94a9774853f76852625c3b63 # Parent 6094a4e2b6f399a62efae0020563e1ecc8f49b58 util.sasl.digest-md5: Revert changeset 6094a4e2b6f3 as it breaks some clients, re-visit some time down the line diff -r 6094a4e2b6f3 -r 25e1a544a096 util/sasl/digest-md5.lua --- a/util/sasl/digest-md5.lua Thu Nov 19 17:20:38 2009 +0100 +++ b/util/sasl/digest-md5.lua Fri Feb 05 17:46:46 2010 +0000 @@ -214,7 +214,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