aboutsummaryrefslogtreecommitdiffstats
path: root/core/hostmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-11-06 18:28:15 +0000
committerMatthew Wild <mwild1@gmail.com>2010-11-06 18:28:15 +0000
commitc6045f3c70bf31cb54f66af60e10e5e788256b10 (patch)
tree2ccce526e76f0e3b873ec13133b3eaf9b5edee37 /core/hostmanager.lua
parentc5bcc70db662a51e4e704b034646bf194aed8b35 (diff)
downloadprosody-c6045f3c70bf31cb54f66af60e10e5e788256b10.tar.gz
prosody-c6045f3c70bf31cb54f66af60e10e5e788256b10.zip
certmanager, hostmanager, mod_tls: Move responsibility for creating per-host SSL contexts to mod_tls, meaning reloading certs is now as trivial as reloading mod_tls
Diffstat (limited to 'core/hostmanager.lua')
-rw-r--r--core/hostmanager.lua6
1 files changed, 0 insertions, 6 deletions
diff --git a/core/hostmanager.lua b/core/hostmanager.lua
index cc19fb91..26a39691 100644
--- a/core/hostmanager.lua
+++ b/core/hostmanager.lua
@@ -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