# HG changeset patch # User Kim Alvefur # Date 1443117720 -7200 # Node ID 8946052e12d2d7ed519f24174dd8320f0a1e4f42 # Parent eed846384178c948f9aadcb779396506fb988236 prosodyctl check: Warn if encryption is required but LuaSec is unavailable diff -r eed846384178 -r 8946052e12d2 prosodyctl --- a/prosodyctl Mon Sep 21 23:19:48 2015 +0200 +++ b/prosodyctl Thu Sep 24 20:02:00 2015 +0200 @@ -913,6 +913,19 @@ print(" For more information see: http://prosody.im/doc/dns"); end end + local all_options = set.new(); + for host in enabled_hosts() do + all_options:include(set.new(it.to_array(it.keys(config[host])))); + end + local ssl = nil, dependencies.softreq"ssl"; + if not ssl then + if not set.intersection(all_options, set.new({"require_encryption", "c2s_require_encryption", "s2s_require_encryption"})):empty() then + print(""); + print(" You require encryption but LuaSec is not available."); + print(" Connections will fail."); + ok = false; + end + end print("Done.\n"); end