58 end |
58 end |
59 end |
59 end |
60 return object |
60 return object |
61 end |
61 end |
62 |
62 |
|
63 |
|
64 -- implementing RFC 2831 |
63 local function new_digest_md5(realm, password_handler) |
65 local function new_digest_md5(realm, password_handler) |
64 --TODO maybe support for authzid |
66 --TODO complete support for authzid |
65 |
67 |
66 local function serialize(message) |
68 local function serialize(message) |
67 local data = "" |
69 local data = "" |
68 |
70 |
69 if type(message) ~= "table" then error("serialize needs an argument of type table.") end |
71 if type(message) ~= "table" then error("serialize needs an argument of type table.") end |