# HG changeset patch # User Tobias Markmann # Date 1228061911 -3600 # Node ID 4d3ccc6b581784558fb0ba21c34f3660834ffc1f # Parent 96f9f8dd9a4568634c3fd30403080a0c03b9f2be# Parent efc5184effa18b6bea1463d4cba7f2b0b8774737 Automerge with waqas. diff -r efc5184effa1 -r 4d3ccc6b5817 util/sasl.lua --- a/util/sasl.lua Sun Nov 30 20:58:48 2008 +0500 +++ b/util/sasl.lua Sun Nov 30 17:18:31 2008 +0100 @@ -104,7 +104,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) @@ -143,7 +143,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