Comparison

plugins/mod_saslauth.lua @ 296:21835c4fc34f

Using md5.sum rather than hashes.md5 because we don't want hexadecimal
author Waqas Hussain <waqas20@gmail.com>
date Sun, 16 Nov 2008 02:28:32 +0500
parent 295:bb078eb1f1de
child 297:15b375870b40
comparison
equal deleted inserted replaced
295:bb078eb1f1de 296:21835c4fc34f
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