Diff

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
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua	Sun Nov 16 02:27:22 2008 +0500
+++ b/plugins/mod_saslauth.lua	Sun Nov 16 02:28:32 2008 +0500
@@ -50,7 +50,7 @@
 		if mechanism == "PLAIN" then
 			return func, password;
 		elseif mechanism == "DIGEST-MD5" then
-			return func, require "hashes".md5(node..":"..host..":"..password);
+			return func, require "md5".sum(node..":"..host..":"..password);
 		end
 	end
 	return func, nil;