aboutsummaryrefslogtreecommitdiffstats
path: root/core/certmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-02-13 16:08:43 +0000
committerMatthew Wild <mwild1@gmail.com>2010-02-13 16:08:43 +0000
commitcec65108c99a2291c993b9a11c83fa43a289f4f9 (patch)
tree0eeacebbb139c9d2dd4052ffd5e2bf7c90652497 /core/certmanager.lua
parent2cdf73b6c3d8253849b68c9293f7df8550dc466b (diff)
downloadprosody-cec65108c99a2291c993b9a11c83fa43a289f4f9.tar.gz
prosody-cec65108c99a2291c993b9a11c83fa43a289f4f9.zip
certmanager, hostmanager: Rename get_context() to create_context() to be more explicit about what it does
Diffstat (limited to 'core/certmanager.lua')
-rw-r--r--core/certmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua
index e5fabdce..64644be9 100644
--- a/core/certmanager.lua
+++ b/core/certmanager.lua
@@ -18,7 +18,7 @@ local default_ssl_ctx_in_mt = { __index = default_ssl_ctx_in };
-- Global SSL options if not overridden per-host
local default_ssl_config = configmanager.get("*", "core", "ssl");
-function get_context(host, mode, config)
+function create_context(host, mode, config)
local ssl_config = config and config.core.ssl or default_ssl_config;
if ssl and ssl_config then
return ssl_newcontext(setmetatable(ssl_config, mode == "client" and default_ssl_ctx_mt or default_ssl_ctx_in_mt));