aboutsummaryrefslogtreecommitdiffstats
path: root/util/sasl.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-04 20:27:53 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-04 20:27:53 +0500
commitf39a3c3f1cb89cec099756de35ee95251aa49c3a (patch)
tree2ff7bd6947b962d7330a5f3d88b0c3cbcbde3187 /util/sasl.lua
parente60635aa94b327010fdd22ce32b162b420cfc4f4 (diff)
downloadprosody-f39a3c3f1cb89cec099756de35ee95251aa49c3a.tar.gz
prosody-f39a3c3f1cb89cec099756de35ee95251aa49c3a.zip
util.sasl: Remove some nastiness
Diffstat (limited to 'util/sasl.lua')
-rw-r--r--util/sasl.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/util/sasl.lua b/util/sasl.lua
index 54715613..7f023321 100644
--- a/util/sasl.lua
+++ b/util/sasl.lua
@@ -138,7 +138,6 @@ local function new_digest_md5(realm, password_handler)
local object = { mechanism = "DIGEST-MD5", realm = realm, password_handler = password_handler};
- --TODO: something better than math.random would be nice, maybe OpenSSL's random number generator
object.nonce = generate_uuid();
object.step = 0;
object.nonce_count = {};
@@ -249,7 +248,6 @@ local function new_anonymous(realm, password_handler)
function object.feed(self, message)
return "success"
end
- --TODO: From XEP-0175 "It is RECOMMENDED for the node identifier to be a UUID as specified in RFC 4122 [5]." So util.uuid() should (or have an option to) behave as specified in RFC 4122.
object["username"] = generate_uuid()
return object
end