util/sasl.lua

changeset 476
4744735a0a5e
parent 475
fe861de7a4fc
child 495
abc4fd4d262a
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}

mercurial