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} |