diff options
author | Paul Aurich <paul@darkrain42.org> | 2010-11-21 21:10:46 -0800 |
---|---|---|
committer | Paul Aurich <paul@darkrain42.org> | 2010-11-21 21:10:46 -0800 |
commit | c84aa2499424c5fedc80e6706d4cb83d61616ea0 (patch) | |
tree | c1c1e787758e35a3a4cf567d4648d46f2bbb3ed0 /plugins | |
parent | ef8bc026b469567751222992cf70ee19f9a754a7 (diff) | |
download | prosody-c84aa2499424c5fedc80e6706d4cb83d61616ea0.tar.gz prosody-c84aa2499424c5fedc80e6706d4cb83d61616ea0.zip |
mod_console: Denote services whose identity matches their (valid/trusted) certificate as 'secure'
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_console.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_console.lua b/plugins/mod_console.lua index c84cd5ac..6c1c8fd9 100644 --- a/plugins/mod_console.lua +++ b/plugins/mod_console.lua @@ -498,7 +498,7 @@ function def_env.s2s:show(match_jid) 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 @@ function def_env.s2s:show(match_jid) -- 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 |