Do idna-to-ascii to the realm we send first in Digest-MD5.

Sun, 30 Nov 2008 00:44:23 +0100

author
Tobias Markmann <tm@ayena.de>
date
Sun, 30 Nov 2008 00:44:23 +0100
changeset 495
abc4fd4d262a
parent 490
9087f39b4222
child 496
b3251b137d68

Do idna-to-ascii to the realm we send first in Digest-MD5.

util/sasl.lua file | annotate | diff | comparison | revisions
--- a/util/sasl.lua	Sat Nov 29 22:11:21 2008 +0100
+++ b/util/sasl.lua	Sun Nov 30 00:44:23 2008 +0100
@@ -87,7 +87,7 @@
 											qop = "auth",
 											charset = "utf-8",
 											algorithm = "md5-sess",
-											realm = self.realm});
+											realm = idna_ascii(self.realm)});
 			return "challenge", challenge
 		elseif (self.step == 2) then
 			local response = parse(message)

mercurial