Comparison

core/certmanager.lua @ 3368:1748a49da906

certmanager: Defined default_capath to prevent a global nil access.
author Waqas Hussain <waqas20@gmail.com>
date Thu, 15 Jul 2010 11:28:14 +0500
parent 3367:598c33a99a31
child 3369:9a96969d4670
comparison
equal deleted inserted replaced
3367:598c33a99a31 3368:1748a49da906
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") or {};
15 local default_capath = "/etc/ssl/certs";
15 16
16 function create_context(host, mode, config) 17 function create_context(host, mode, config)
17 if not ssl then return nil; end 18 if not ssl then return nil; end
18 19
19 local user_ssl_config = config and config.core.ssl or default_ssl_config; 20 local user_ssl_config = config and config.core.ssl or default_ssl_config;