48 local func = function(x) return x; end; |
48 local func = function(x) return x; end; |
49 if password then |
49 if password then |
50 if mechanism == "PLAIN" then |
50 if mechanism == "PLAIN" then |
51 return func, password; |
51 return func, password; |
52 elseif mechanism == "DIGEST-MD5" then |
52 elseif mechanism == "DIGEST-MD5" then |
53 return func, require "hashes".md5(node..":"..host..":"..password); |
53 return func, require "md5".sum(node..":"..host..":"..password); |
54 end |
54 end |
55 end |
55 end |
56 return func, nil; |
56 return func, nil; |
57 end |
57 end |
58 |
58 |