Comparison

core/s2smanager.lua @ 1909:84027581c995

s2smanager: Mark session as secure if it was negotiating TLS and opens a new stream
author Matthew Wild <mwild1@gmail.com>
date Mon, 05 Oct 2009 14:50:27 +0100
parent 1895:b7c838a1b0ca
child 1928:d11f07ca0b75
comparison
equal deleted inserted replaced
1908:27c1c6e6c583 1909:84027581c995
337 local send = session.sends2s; 337 local send = session.sends2s;
338 338
339 -- TODO: #29: SASL/TLS on s2s streams 339 -- TODO: #29: SASL/TLS on s2s streams
340 session.version = tonumber(attr.version) or 0; 340 session.version = tonumber(attr.version) or 0;
341 341
342 if session.secure == false then
343 session.secure = true;
344 end
345
342 if session.version >= 1.0 and not (attr.to and attr.from) then 346 if session.version >= 1.0 and not (attr.to and attr.from) then
343 log("warn", (session.to_host or "(unknown)").." failed to specify 'to' or 'from' hostname as per RFC"); 347 log("warn", (session.to_host or "(unknown)").." failed to specify 'to' or 'from' hostname as per RFC");
344 end 348 end
345 349
346 if session.direction == "incoming" then 350 if session.direction == "incoming" then