Comparison

util/sasl.lua @ 476:4744735a0a5e

Apply IDNA to ASCII on hostnames.
author Tobias Markmann <tm@ayena.de>
date Sat, 29 Nov 2008 12:17:21 +0100
parent 475:fe861de7a4fc
child 495:abc4fd4d262a
comparison
equal deleted inserted replaced
475:fe861de7a4fc 476:4744735a0a5e
9 local string = string 9 local string = string
10 local math = require "math" 10 local math = require "math"
11 local type = type 11 local type = type
12 local error = error 12 local error = error
13 local print = print 13 local print = print
14 local idna_ascii = require "util.encodings".stringprep.saslprep.to_ascii 14 local idna_ascii = require "util.encodings".idna.to_ascii
15 15
16 module "sasl" 16 module "sasl"
17 17
18 local function new_plain(realm, password_handler) 18 local function new_plain(realm, password_handler)
19 local object = { mechanism = "PLAIN", realm = realm, password_handler = password_handler} 19 local object = { mechanism = "PLAIN", realm = realm, password_handler = password_handler}