certmanager, hostmanager, mod_tls: Move responsibility for creating per-host SSL...
[prosody.git] / core / hostmanager.lua
index cc19fb91eced7e30c08e8c7f4181960924ec80f8..26a396912b1efc07a568ffa09499cb1c70fb5300 100644 (file)
@@ -6,9 +6,6 @@
 -- COPYING file in the source package for more information.
 --
 
-local ssl = ssl
-
-local certmanager = require "core.certmanager";
 local configmanager = require "core.configmanager";
 local modulemanager = require "core.modulemanager";
 local events_new = require "util.events".new;
@@ -65,9 +62,6 @@ function activate(host, host_config)
                end
        end
        
-       hosts[host].ssl_ctx = certmanager.create_context(host, "client", host_config); -- for outgoing connections
-       hosts[host].ssl_ctx_in = certmanager.create_context(host, "server", host_config); -- for incoming connections
-       
        log((hosts_loaded_once and "info") or "debug", "Activated host: %s", host);
        prosody_events.fire_event("host-activated", host, host_config);
 end