Automerge with waqas.
[prosody.git] / util / sasl.lua
index 02d47719bda35c50a61cbadf260550aaa156d13d..43340105f6916e2a5b04cf20f504306972c82218 100644 (file)
@@ -104,7 +104,7 @@ local function new_digest_md5(realm, password_handler)
                                                                                        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 @@ local function new_digest_md5(realm, password_handler)
                        
                        --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