Software /
code /
prosody
Diff
core/hostmanager.lua @ 3571:675d65036f31
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
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 06 Nov 2010 18:28:15 +0000 |
parent | 3434:428f13c098d5 |
child | 3587:d94aacb2771a |
line wrap: on
line diff
--- a/core/hostmanager.lua Sat Nov 06 03:46:19 2010 +0500 +++ b/core/hostmanager.lua Sat Nov 06 18:28:15 2010 +0000 @@ -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 @@ 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