diff options
author | Tobias Markmann <tm@ayena.de> | 2009-11-13 14:31:03 +0100 |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2009-11-13 14:31:03 +0100 |
commit | 9a77245fd19b2421169ed765b4820678073fade2 (patch) | |
tree | 2e704a6a48152a047a4b7b27b0e8d4e6f01394b8 /util | |
parent | 8c36b99f27aaa438ce12c8183df357d3c6bd916d (diff) | |
download | prosody-9a77245fd19b2421169ed765b4820678073fade2.tar.gz prosody-9a77245fd19b2421169ed765b4820678073fade2.zip |
Adding a note for possible round trip savings.
Diffstat (limited to 'util')
-rw-r--r-- | util/sasl/digest-md5.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/sasl/digest-md5.lua b/util/sasl/digest-md5.lua index 3f50e232..ba042933 100644 --- a/util/sasl/digest-md5.lua +++ b/util/sasl/digest-md5.lua @@ -214,6 +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}); else return "failure", "not-authorized", "The response provided by the client doesn't match the one we calculated." |