# HG changeset patch # User Kim Alvefur # Date 1572784184 -3600 # Node ID ec3eb426271e2c0da7847f05f12c9f94c8b3a85b # Parent 75299ac7e2582ab44f291f35c7fa320af6a94c43 mod_warn_legacy_tls: Log a warning attached to sessions using deprecated TLS versions diff -r 75299ac7e258 -r ec3eb426271e mod_warn_legacy_tls/mod_warn_legacy_tls.lua --- a/mod_warn_legacy_tls/mod_warn_legacy_tls.lua Sun Nov 03 13:14:43 2019 +0100 +++ b/mod_warn_legacy_tls/mod_warn_legacy_tls.lua Sun Nov 03 13:29:44 2019 +0100 @@ -14,6 +14,7 @@ if not ok then module:log("debug", "Could not determine TLS version: %s", protocol); elseif deprecated_protocols:contains(protocol) then + session.log("warn", "Uses %s", protocol); module:add_timer(15, function () if session.type == "c2s" and session.resource then session.send(st.message({ from = host, type = "headline", to = session.full_jid }, warning_message:format(protocol)));