aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-02-05 17:46:58 +0000
committerMatthew Wild <mwild1@gmail.com>2010-02-05 17:46:58 +0000
commit2baed82b54890013c76d2b3c2cd2e5f283eb5ef2 (patch)
treed2a6d4dc6f64e06de46241ff3ee0de8472affe17 /util/sasl
parent586c38979c3643041262413ef0f929bfd7f26316 (diff)
parent4262db951e84928cef57271537508a8ba83482a7 (diff)
downloadprosody-2baed82b54890013c76d2b3c2cd2e5f283eb5ef2.tar.gz
prosody-2baed82b54890013c76d2b3c2cd2e5f283eb5ef2.zip
Merge with backout
Diffstat (limited to 'util/sasl')
-rw-r--r--util/sasl/digest-md5.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/sasl/digest-md5.lua b/util/sasl/digest-md5.lua
index c4507d11..5b8f5c8a 100644
--- a/util/sasl/digest-md5.lua
+++ b/util/sasl/digest-md5.lua
@@ -212,7 +212,8 @@ local function digest(self, message)
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