Comparison

plugins/mod_tls.lua @ 622:96848cf7f28c

Remove a FIXME from mod_tls
author Matthew Wild <mwild1@gmail.com>
date Mon, 15 Dec 2008 18:06:59 +0000
parent 615:4ae3e81513f3
child 705:11afa1d88c55
comparison
equal deleted inserted replaced
621:cd2cab5400fc 622:96848cf7f28c
31 31
32 module:add_handler("c2s_unauthed", "starttls", xmlns_starttls, 32 module:add_handler("c2s_unauthed", "starttls", xmlns_starttls,
33 function (session, stanza) 33 function (session, stanza)
34 if session.conn.starttls then 34 if session.conn.starttls then
35 session.send(st.stanza("proceed", { xmlns = xmlns_starttls })); 35 session.send(st.stanza("proceed", { xmlns = xmlns_starttls }));
36 -- FIXME: I'm commenting the below, not sure why it was necessary
37 -- sessions[session.conn] = nil;
38 session:reset_stream(); 36 session:reset_stream();
39 session.conn.starttls(); 37 session.conn.starttls();
40 session.log("info", "TLS negotiation started..."); 38 session.log("info", "TLS negotiation started...");
41 else 39 else
42 -- FIXME: What reply? 40 -- FIXME: What reply?