aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-12-08 03:27:02 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-12-08 03:27:02 +0500
commitca2df50f6b13b57f28b315b022e1b7d2558ea898 (patch)
treeeef15150b37ab3612c92825bc2df6e1d065985f2 /util
parent5b3c2cf16701c9bfa60c3fc5b54388e68dc8265a (diff)
downloadprosody-ca2df50f6b13b57f28b315b022e1b7d2558ea898.tar.gz
prosody-ca2df50f6b13b57f28b315b022e1b7d2558ea898.zip
Removed the unnecessary idna.to_ascii applied to the DIGEST-MD5 disgest-uri response values, which was causing auth failures with some clients.
Diffstat (limited to 'util')
-rw-r--r--util/sasl.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/sasl.lua b/util/sasl.lua
index 12e7df4f..311c3aff 100644
--- a/util/sasl.lua
+++ b/util/sasl.lua
@@ -205,7 +205,7 @@ local function new_digest_md5(realm, password_handler)
elseif Y == false then return "failure", "account-disabled" end
local A1 = Y..":"..response["nonce"]..":"..response["cnonce"]--:authzid
- local A2 = "AUTHENTICATE:"..protocol.."/"..idna_ascii(domain)
+ local A2 = "AUTHENTICATE:"..protocol.."/"..domain;
local HA1 = md5(A1, true)
local HA2 = md5(A2, true)
@@ -215,7 +215,7 @@ local function new_digest_md5(realm, password_handler)
if response_value == response["response"] then
-- calculate rspauth
- A2 = ":"..protocol.."/"..idna_ascii(domain)
+ A2 = ":"..protocol.."/"..domain;
HA1 = md5(A1, true)
HA2 = md5(A2, true)