Software /
code /
prosody
Comparison
core/certmanager.lua @ 3371:5b32e6f84392
Backed out changeset 598c33a99a31 (already fixed a better way)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 15 Jul 2010 08:25:50 +0100 |
parent | 3367:598c33a99a31 |
child | 3372:395f692b3182 |
comparison
equal
deleted
inserted
replaced
3367:598c33a99a31 | 3371:5b32e6f84392 |
---|---|
9 local resolve_path = prosody.resolve_relative_path; | 9 local resolve_path = prosody.resolve_relative_path; |
10 | 10 |
11 module "certmanager" | 11 module "certmanager" |
12 | 12 |
13 -- Global SSL options if not overridden per-host | 13 -- Global SSL options if not overridden per-host |
14 local default_ssl_config = configmanager.get("*", "core", "ssl") or {}; | 14 local default_ssl_config = configmanager.get("*", "core", "ssl"); |
15 | 15 |
16 function create_context(host, mode, config) | 16 function create_context(host, mode, config) |
17 if not ssl then return nil; end | 17 if not ssl then return nil; end |
18 | 18 |
19 local user_ssl_config = config and config.core.ssl or default_ssl_config; | 19 local user_ssl_config = config and config.core.ssl or default_ssl_config; |