diff options
author | Kim Alvefur <zash@zash.se> | 2019-04-24 18:06:48 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-04-24 18:06:48 +0200 |
commit | 06b09c3b02f3b2c6be55227446801d67efff89ef (patch) | |
tree | 6428934ad658fb37297399185cbd51ea8adce98d /plugins/mod_tls.lua | |
parent | cb8a085c3bcbec83ad6b65631f8189e406bca042 (diff) | |
parent | 4ff75d0fc9c98e1b25c4f9c72060d14b15a0dc9c (diff) | |
download | prosody-06b09c3b02f3b2c6be55227446801d67efff89ef.tar.gz prosody-06b09c3b02f3b2c6be55227446801d67efff89ef.zip |
Merge 0.11->trunk
Diffstat (limited to 'plugins/mod_tls.lua')
-rw-r--r-- | plugins/mod_tls.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua index d8bf02c4..b16acd09 100644 --- a/plugins/mod_tls.lua +++ b/plugins/mod_tls.lua @@ -53,11 +53,14 @@ 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"); local request_client_certs = { verify = { "peer", "client_once", }; }; + module:log("debug", "Creating context for s2sout"); ssl_ctx_c2s, err_c2s, 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_c2s); end + module:log("debug", "Creating context for s2sin"); -- for outgoing server connections ssl_ctx_s2sout, err_s2sout, ssl_cfg_s2sout = create_context(host.host, "client", host_s2s, host_ssl, global_s2s, request_client_certs); if not ssl_ctx_s2sout then module:log("error", "Error creating contexts for s2sout: %s", err_s2sout); end |