aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_tls.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-04-23 19:13:50 +0200
committerKim Alvefur <zash@zash.se>2019-04-23 19:13:50 +0200
commiteca1ddea1e620a6200c4999b82d1c793b354c481 (patch)
tree144e913a940579bd4bc602af8bf46f2f9300b5fd /plugins/mod_tls.lua
parent3d14e00260469a7d2ba439ec5c3aad9cdb7238d1 (diff)
downloadprosody-eca1ddea1e620a6200c4999b82d1c793b354c481.tar.gz
prosody-eca1ddea1e620a6200c4999b82d1c793b354c481.zip
mod_tls: Log debug message for each kind of TLS context created
Creating TLS contexts triggers a lot of messages from certmanager that don't really describe their purpose. This is meant to provide hints about that.
Diffstat (limited to 'plugins/mod_tls.lua')
-rw-r--r--plugins/mod_tls.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua
index 029ddd1d..eb208e28 100644
--- a/plugins/mod_tls.lua
+++ b/plugins/mod_tls.lua
@@ -52,12 +52,15 @@ function module.load()
local parent_s2s = rawgetopt(parent, "s2s_ssl") or NULL;
local host_s2s = rawgetopt(modhost, "s2s_ssl") or parent_s2s;
+ module:log("debug", "Creating context for c2s");
ssl_ctx_c2s, err, ssl_cfg_c2s = create_context(host.host, "server", host_c2s, host_ssl, global_c2s); -- for incoming client connections
if not ssl_ctx_c2s then module:log("error", "Error creating context for c2s: %s", err); end
+ module:log("debug", "Creating context for s2sout");
ssl_ctx_s2sout, err, ssl_cfg_s2sout = create_context(host.host, "client", host_s2s, host_ssl, global_s2s); -- for outgoing server connections
if not ssl_ctx_s2sout then module:log("error", "Error creating contexts for s2sout: %s", err); end
+ module:log("debug", "Creating context for s2sin");
ssl_ctx_s2sin, err, ssl_cfg_s2sin = create_context(host.host, "server", host_s2s, host_ssl, global_s2s); -- for incoming server connections
if not ssl_ctx_s2sin then module:log("error", "Error creating contexts for s2sin: %s", err); end
end