Software /
code /
prosody
Comparison
core/certmanager.lua @ 2563:1ede33f50ab4
certmanager: Tabs not spaces!
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 05 Feb 2010 14:22:48 +0000 |
parent | 2554:b877533d4ec9 |
child | 2564:6b4fe320a6ea |
comparison
equal
deleted
inserted
replaced
2562:f321211978f6 | 2563:1ede33f50ab4 |
---|---|
19 local default_ssl_config = configmanager.get("*", "core", "ssl"); | 19 local default_ssl_config = configmanager.get("*", "core", "ssl"); |
20 | 20 |
21 function get_context(host, mode, config) | 21 function get_context(host, mode, config) |
22 local ssl_config = config and config.core.ssl or default_ssl_config; | 22 local ssl_config = config and config.core.ssl or default_ssl_config; |
23 if ssl and ssl_config then | 23 if ssl and ssl_config then |
24 return ssl_newcontext(setmetatable(ssl_config, mode == "client" and default_ssl_ctx_mt or default_ssl_ctx_in_mt)); | 24 return ssl_newcontext(setmetatable(ssl_config, mode == "client" and default_ssl_ctx_mt or default_ssl_ctx_in_mt)); |
25 end | 25 end |
26 return nil; | 26 return nil; |
27 end | 27 end |
28 | 28 |
29 function reload_ssl_config() | 29 function reload_ssl_config() |
30 default_ssl_config = config.get("*", "core", "ssl"); | 30 default_ssl_config = config.get("*", "core", "ssl"); |
31 end | 31 end |