# HG changeset patch # User Tobias Markmann # Date 1228054725 -3600 # Node ID 96f9f8dd9a4568634c3fd30403080a0c03b9f2be # Parent 1b938e00412ccbb3c1c43d20b550f0cfce1704d1# Parent 21dc299387a614574012c89bcdc27048c128b4fb Automated merge with h-h. diff -r 21dc299387a6 -r 96f9f8dd9a45 util/sasl.lua --- a/util/sasl.lua Sun Nov 30 04:22:43 2008 +0000 +++ b/util/sasl.lua Sun Nov 30 15:18:45 2008 +0100 @@ -88,7 +88,7 @@ qop = "auth", charset = "utf-8", algorithm = "md5-sess", - realm = idna_ascii(self.realm)}); + realm = self.realm}); return "challenge", challenge elseif (self.step == 2) then local response = parse(message) @@ -127,7 +127,7 @@ --TODO maybe realm support self.username = response["username"] - local password_encoding, Y = self.password_handler(response["username"], idna_unicode(response["realm"]), "DIGEST-MD5") + local password_encoding, Y = self.password_handler(response["username"], response["realm"], "DIGEST-MD5") if Y == nil then return "failure", "not-authorized" elseif Y == false then return "failure", "account-disabled" end