plugins/mod_tls.lua
changeset 12981 74b9e05af71e
parent 12606 9184fe3d489a
child 13080 f4e33d17eaa8
equal deleted inserted replaced
12980:a187600ec7d6 12981:74b9e05af71e
     4 --
     4 --
     5 -- This project is MIT/X11 licensed. Please see the
     5 -- This project is MIT/X11 licensed. Please see the
     6 -- COPYING file in the source package for more information.
     6 -- COPYING file in the source package for more information.
     7 --
     7 --
     8 
     8 
     9 local create_context = require "core.certmanager".create_context;
     9 local create_context = require "prosody.core.certmanager".create_context;
    10 local rawgetopt = require"core.configmanager".rawget;
    10 local rawgetopt = require"prosody.core.configmanager".rawget;
    11 local st = require "util.stanza";
    11 local st = require "prosody.util.stanza";
    12 
    12 
    13 local c2s_require_encryption = module:get_option("c2s_require_encryption", module:get_option("require_encryption", true));
    13 local c2s_require_encryption = module:get_option("c2s_require_encryption", module:get_option("require_encryption", true));
    14 local s2s_require_encryption = module:get_option("s2s_require_encryption", true);
    14 local s2s_require_encryption = module:get_option("s2s_require_encryption", true);
    15 local allow_s2s_tls = module:get_option("s2s_allow_encryption") ~= false;
    15 local allow_s2s_tls = module:get_option("s2s_allow_encryption") ~= false;
    16 local s2s_secure_auth = module:get_option("s2s_secure_auth");
    16 local s2s_secure_auth = module:get_option("s2s_secure_auth");