Comparison

util/sasl/digest-md5.lua @ 2998:36c169ed1576

Merge Tobias's fancy SASL branch->trunk
author Matthew Wild <mwild1@gmail.com>
date Wed, 05 May 2010 11:29:10 +0100
parent 2936:c186b4883b8d
parent 2996:b0515ed4d9d7
child 3116:90a98a6b52ac
comparison
equal deleted inserted replaced
2989:87c378c77be3 2998:36c169ed1576
1 -- sasl.lua v0.4 1 -- sasl.lua v0.4
2 -- Copyright (C) 2008-2009 Tobias Markmann 2 -- Copyright (C) 2008-2010 Tobias Markmann
3 -- 3 --
4 -- All rights reserved. 4 -- All rights reserved.
5 -- 5 --
6 -- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 6 -- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
7 -- 7 --
26 26
27 module "digest-md5" 27 module "digest-md5"
28 28
29 --========================= 29 --=========================
30 --SASL DIGEST-MD5 according to RFC 2831 30 --SASL DIGEST-MD5 according to RFC 2831
31
32 --[[
33 Supported Authentication Backends
34
35 digest-md5:
36 function(username, domain, realm, encoding) -- domain and realm are usually the same; for some broken
37 -- implementations it's not
38 return digesthash, state;
39 end
40
41 digest-md5-test:
42 function(username, domain, realm, encoding, digesthash)
43 return true or false, state;
44 end
45 ]]
31 46
32 local function digest(self, message) 47 local function digest(self, message)
33 --TODO complete support for authzid 48 --TODO complete support for authzid
34 49
35 local function serialize(message) 50 local function serialize(message)