From 1930de3de81d9d1f89d12dd854c075cf510dd2f5 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 5 Oct 2009 14:50:27 +0100 Subject: s2smanager: Mark session as secure if it was negotiating TLS and opens a new stream --- core/s2smanager.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core') diff --git a/core/s2smanager.lua b/core/s2smanager.lua index e22a49df..cdfadba0 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -339,6 +339,10 @@ function streamopened(session, attr) -- TODO: #29: SASL/TLS on s2s streams session.version = tonumber(attr.version) or 0; + if session.secure == false then + session.secure = true; + end + if session.version >= 1.0 and not (attr.to and attr.from) then log("warn", (session.to_host or "(unknown)").." failed to specify 'to' or 'from' hostname as per RFC"); end -- cgit v1.2.3