comparison mod_watchuntrusted/mod_watchuntrusted.lua @ 2810:9a3e51f348fe

mod_watchuntrusted send SHA256 by default
author Michel Le Bihan <michel@lebihan.pl>
date Sat, 28 Oct 2017 17:17:59 +0200
parents dd1f0173f538
children 65082d91950e
comparison
equal deleted inserted replaced
2809:6d3935226ffb 2810:9a3e51f348fe
3 local secure_auth = module:get_option_boolean("s2s_secure_auth", false); 3 local secure_auth = module:get_option_boolean("s2s_secure_auth", false);
4 local secure_domains, insecure_domains = 4 local secure_domains, insecure_domains =
5 module:get_option_set("s2s_secure_domains", {})._items, module:get_option_set("s2s_insecure_domains", {})._items; 5 module:get_option_set("s2s_secure_domains", {})._items, module:get_option_set("s2s_insecure_domains", {})._items;
6 6
7 local untrusted_fail_watchers = module:get_option_set("untrusted_fail_watchers", module:get_option("admins", {})) / jid_prep; 7 local untrusted_fail_watchers = module:get_option_set("untrusted_fail_watchers", module:get_option("admins", {})) / jid_prep;
8 local untrusted_fail_notification = module:get_option("untrusted_fail_notification", "Establishing a secure connection from $from_host to $to_host failed. Certificate hash: $sha1. $errors"); 8 local untrusted_fail_notification = module:get_option("untrusted_fail_notification", "Establishing a secure connection from $from_host to $to_host failed. Certificate hash: $sha256. $errors");
9 9
10 local st = require "util.stanza"; 10 local st = require "util.stanza";
11 11
12 local notified_about_already = { }; 12 local notified_about_already = { };
13 13