24 local string = string |
24 local string = string |
25 local math = require "math" |
25 local math = require "math" |
26 local type = type |
26 local type = type |
27 local error = error |
27 local error = error |
28 local print = print |
28 local print = print |
29 local idna_ascii = require "util.encodings".idna.to_ascii |
|
30 local idna_unicode = require "util.encodings".idna.to_unicode |
|
31 |
29 |
32 module "sasl" |
30 module "sasl" |
33 |
31 |
34 local function new_plain(realm, password_handler) |
32 local function new_plain(realm, password_handler) |
35 local object = { mechanism = "PLAIN", realm = realm, password_handler = password_handler} |
33 local object = { mechanism = "PLAIN", realm = realm, password_handler = password_handler} |