Comparison

util/sasl.lua @ 801:d29febc977fc

Adding TODO notice on UUIDs for usage with SASL ANONYMOUS.
author Tobias Markmann <tm@ayena.de>
date Sat, 14 Feb 2009 19:39:46 +0100 (2009-02-14)
parent 799:b7ea802f3527
child 896:2c0b9e3c11c3
comparison
equal deleted inserted replaced
800:5e12bca2a4f8 801:d29febc977fc
238 local function new_anonymous(realm, password_handler) 238 local function new_anonymous(realm, password_handler)
239 local object = { mechanism = "ANONYMOUS", realm = realm, password_handler = password_handler} 239 local object = { mechanism = "ANONYMOUS", realm = realm, password_handler = password_handler}
240 function object.feed(self, message) 240 function object.feed(self, message)
241 return "success" 241 return "success"
242 end 242 end
243 --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.
243 object["username"] = generate_uuid() 244 object["username"] = generate_uuid()
244 return object 245 return object
245 end 246 end
246 247
247 248