# HG changeset patch # User Paul Aurich # Date 1290402646 28800 # Node ID 8ae10787272a9eeb86e20264b55447bc3eae3721 # Parent 337391d34b704f127a60e928d3a54a0798ef03cf mod_console: Denote services whose identity matches their (valid/trusted) certificate as 'secure' diff -r 337391d34b70 -r 8ae10787272a plugins/mod_console.lua --- a/plugins/mod_console.lua Sun Nov 21 21:10:43 2010 -0800 +++ b/plugins/mod_console.lua Sun Nov 21 21:10:46 2010 -0800 @@ -498,7 +498,7 @@ for remotehost, session in pairs(host_session.s2sout) do if (not match_jid) or remotehost:match(match_jid) or host:match(match_jid) then count_out = count_out + 1; - print(" "..host.." -> "..remotehost..(session.secure and " (encrypted)" or "")..(session.compressed and " (compressed)" or "")); + print(" "..host.." -> "..remotehost..(session.cert_identity_status == "valid" and " (secure)" or "")..(session.secure and " (encrypted)" or "")..(session.compressed and " (compressed)" or "")); if session.sendq then print(" There are "..#session.sendq.." queued outgoing stanzas for this connection"); end @@ -535,7 +535,7 @@ -- Pft! is what I say to list comprehensions or (session.hosts and #array.collect(keys(session.hosts)):filter(subhost_filter)>0)) then count_in = count_in + 1; - print(" "..host.." <- "..(session.from_host or "(unknown)")..(session.secure and " (encrypted)" or "")..(session.compressed and " (compressed)" or "")); + print(" "..host.." <- "..(session.from_host or "(unknown)")..(session.cert_identity_status == "valid" and " (secure)" or "")..(session.secure and " (encrypted)" or "")..(session.compressed and " (compressed)" or "")); if session.type == "s2sin_unauthed" then print(" Connection not yet authenticated"); end