Software /
code /
prosody
Comparison
util/sasl.lua @ 1158:7d1e4fc1ee6d
adding RFC comment
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Fri, 15 May 2009 17:05:26 +0200 |
parent | 1134:3b1809910773 |
child | 1159:f81c8cec0e71 |
comparison
equal
deleted
inserted
replaced
1145:06051191913d | 1158:7d1e4fc1ee6d |
---|---|
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 |