util/sasl/digest-md5.lua

changeset 3092
d32935878661
parent 2936
c186b4883b8d
child 3094
5f625411b463
--- a/util/sasl/digest-md5.lua	Sun May 23 05:46:52 2010 +0500
+++ b/util/sasl/digest-md5.lua	Sun Feb 28 22:32:12 2010 +0100
@@ -29,6 +29,21 @@
 --=========================
 --SASL DIGEST-MD5 according to RFC 2831
 
+--[[
+Supported Authentication Backends
+
+digest-md5:
+	function(username, domain, realm, encoding) -- domain and realm are usually the same; for some broken
+												-- implementations it's not
+		return digesthash, state;
+	end
+
+digest-md5-test:
+	function(username, domain, realm, encoding, digesthash)
+		return true or false, state;
+	end
+]]
+
 local function digest(self, message)
 	--TODO complete support for authzid
 

mercurial