Software /
code /
prosody
Diff
util/sasl/digest-md5.lua @ 3092:d32935878661
util.sasl: Moving SASL authentication backends documentation to the mechanism files.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Sun, 28 Feb 2010 22:32:12 +0100 |
parent | 2936:c186b4883b8d |
child | 3094:5f625411b463 |
line wrap: on
line diff
--- 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