Software /
code /
prosody
Diff
util/sasl.lua @ 1305:37657578ea85
util.sasl: Remove some nastiness
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 04 Jun 2009 20:27:53 +0500 |
parent | 1161:5bc2b7b5b81d |
child | 1374:e85726d084d6 |
line wrap: on
line diff
--- a/util/sasl.lua Thu Jun 04 19:55:56 2009 +0500 +++ b/util/sasl.lua Thu Jun 04 20:27:53 2009 +0500 @@ -138,7 +138,6 @@ 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 @@ 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