Software /
code /
prosody
Comparison
plugins/mod_tls.lua @ 7863:a634fe3c21f2
mod_tls: Add debug logging for when TLS should be doable but no ssl context was set
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 25 Jan 2017 11:06:30 +0100 |
parent | 7834:a2081d28bd22 |
child | 7864:7ece186a44d3 |
comparison
equal
deleted
inserted
replaced
7862:f5cbbf69cac8 | 7863:a634fe3c21f2 |
---|---|
77 session.ssl_ctx = ssl_ctx_s2sout; | 77 session.ssl_ctx = ssl_ctx_s2sout; |
78 session.ssl_cfg = ssl_cfg_s2sout; | 78 session.ssl_cfg = ssl_cfg_s2sout; |
79 else | 79 else |
80 return false; | 80 return false; |
81 end | 81 end |
82 if not session.ssl_ctx then | |
83 session.log("debug", "Should be able to do TLS but no context available"); | |
84 return false; | |
85 end | |
82 return session.ssl_ctx; | 86 return session.ssl_ctx; |
83 end | 87 end |
84 | 88 |
85 -- Hook <starttls/> | 89 -- Hook <starttls/> |
86 module:hook("stanza/urn:ietf:params:xml:ns:xmpp-tls:starttls", function(event) | 90 module:hook("stanza/urn:ietf:params:xml:ns:xmpp-tls:starttls", function(event) |