diff options
author | Tobias Markmann <tm@ayena.de> | 2009-11-19 17:20:38 +0100 |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2009-11-19 17:20:38 +0100 |
commit | 315e7ac799abb96f627be4c5b27648f007b89be7 (patch) | |
tree | 85c10a2bb9519137cea474d84492092a59a8d3b7 | |
parent | b32b0e118daa6a32b464bf21e7c091041eec0dbb (diff) | |
download | prosody-315e7ac799abb96f627be4c5b27648f007b89be7.tar.gz prosody-315e7ac799abb96f627be4c5b27648f007b89be7.zip |
Reduce needed roundtrips during DIGEST-MD5 login.
-rw-r--r-- | util/sasl/digest-md5.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/util/sasl/digest-md5.lua b/util/sasl/digest-md5.lua index 1429a5c6..e80ed63a 100644 --- a/util/sasl/digest-md5.lua +++ b/util/sasl/digest-md5.lua @@ -214,8 +214,7 @@ local function digest(self, message) KD = HA1..":"..response["nonce"]..":"..response["nc"]..":"..response["cnonce"]..":"..response["qop"]..":"..HA2 local rspauth = md5(KD, true); self.authenticated = true; - --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}); + return "success", serialize({rspauth = rspauth}); else return "failure", "not-authorized", "The response provided by the client doesn't match the one we calculated." end |