aboutsummaryrefslogtreecommitdiffstats
path: root/core/hostmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-17 16:23:03 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-17 16:23:03 +0100
commitd1e347d1599f601b290f029818afa764c47e547f (patch)
tree32c963570c9f24a4f4f1a512f881ce349e0b2424 /core/hostmanager.lua
parent466b2ee661478061e24c7452f781fc0b4cb6a0d6 (diff)
downloadprosody-d1e347d1599f601b290f029818afa764c47e547f.tar.gz
prosody-d1e347d1599f601b290f029818afa764c47e547f.zip
hostmanager: Create a server sslctx for incoming connections
Diffstat (limited to 'core/hostmanager.lua')
-rw-r--r--core/hostmanager.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/hostmanager.lua b/core/hostmanager.lua
index 61aeefb9..f89eaeba 100644
--- a/core/hostmanager.lua
+++ b/core/hostmanager.lua
@@ -21,6 +21,7 @@ local incoming_s2s = _G.prosody.incoming_s2s;
-- These are the defaults if not overridden in the config
local default_ssl_ctx = { mode = "client", protocol = "sslv23", capath = "/etc/ssl/certs", verify = "none"; };
+local default_ssl_ctx_in = { mode = "server", protocol = "sslv23", capath = "/etc/ssl/certs", verify = "none"; };
local log = require "util.logger".init("hostmanager");
@@ -61,6 +62,7 @@ function activate(host, host_config)
local ssl_config = host_config.core.ssl or configmanager.get("*", "core", "ssl");
if ssl_config then
hosts[host].ssl_ctx = ssl.newcontext(setmetatable(ssl_config, { __index = default_ssl_ctx }));
+ hosts[host].ssl_ctx_in = ssl.newcontext(setmetatable(ssl_config, { __index = default_ssl_ctx_in }));
end
end