Software /
code /
prosody-modules
Comparison
mod_s2s_log_certs/mod_s2s_log_certs.lua @ 1091:79ef0427765f
mod_s2s_log_certs: Minor grammar change
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 28 Jun 2013 03:24:35 +0200 |
parent | 1009:fcba646eb20a |
child | 1787:663e5d923ef0 |
comparison
equal
deleted
inserted
replaced
1090:1aa48916eb8b | 1091:79ef0427765f |
---|---|
15 | 15 |
16 local local_host = session.direction == "outgoing" and session.from_host or session.to_host; | 16 local local_host = session.direction == "outgoing" and session.from_host or session.to_host; |
17 local chain_status = session.cert_chain_status; | 17 local chain_status = session.cert_chain_status; |
18 local identity_status = session.cert_identity_status; | 18 local identity_status = session.cert_identity_status; |
19 | 19 |
20 module:log("info", "Spotted %s %s certificate used by %s with %s: %s", | 20 module:log("info", "%s has a %s %s certificate with %s: %s", |
21 remote_host, | |
21 chain_status == "valid" and "trusted" or "untrusted", | 22 chain_status == "valid" and "trusted" or "untrusted", |
22 identity_status or "invalid", | 23 identity_status or "invalid", |
23 remote_host, digest_algo:upper(), | 24 digest_algo:upper(), |
24 digest:upper():gsub("..",":%0"):sub(2)); | 25 digest:upper():gsub("..",":%0"):sub(2)); |
25 | 26 |
26 if do_store then | 27 if do_store then |
27 local seen_certs = dm_load(remote_host, local_host, "s2s_certs") or {}; | 28 local seen_certs = dm_load(remote_host, local_host, "s2s_certs") or {}; |
28 | 29 |