aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl/digest-md5.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-05-05 11:29:10 +0100
committerMatthew Wild <mwild1@gmail.com>2010-05-05 11:29:10 +0100
commita17cc3b6791eaf110ded69edbc07e41e881e036d (patch)
treeae4b02ccb9e9117eafb78c2d8c74951f6e528972 /util/sasl/digest-md5.lua
parentcca05af3d369ba4e53cd76f7e33196c5ee8415b4 (diff)
parentb05ccd7b3affed026faf4b492d91af972f5ae8ac (diff)
downloadprosody-a17cc3b6791eaf110ded69edbc07e41e881e036d.tar.gz
prosody-a17cc3b6791eaf110ded69edbc07e41e881e036d.zip
Merge Tobias's fancy SASL branch->trunk
Diffstat (limited to 'util/sasl/digest-md5.lua')
-rw-r--r--util/sasl/digest-md5.lua17
1 files changed, 16 insertions, 1 deletions
diff --git a/util/sasl/digest-md5.lua b/util/sasl/digest-md5.lua
index 04acf04d..8986ca45 100644
--- a/util/sasl/digest-md5.lua
+++ b/util/sasl/digest-md5.lua
@@ -1,5 +1,5 @@
-- sasl.lua v0.4
--- Copyright (C) 2008-2009 Tobias Markmann
+-- Copyright (C) 2008-2010 Tobias Markmann
--
-- All rights reserved.
--
@@ -29,6 +29,21 @@ module "digest-md5"
--=========================
--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