Comparison

core/certmanager.lua @ 4991:bcbfcec620ac

certmanager: Fix for traceback WITH LuaSec... (!) (thanks IRON)
author Matthew Wild <mwild1@gmail.com>
date Mon, 23 Jul 2012 16:39:49 +0100
parent 4990:75fe91372f92
child 4992:e79e4d1f75de
comparison
equal deleted inserted replaced
4990:75fe91372f92 4991:bcbfcec620ac
15 15
16 local prosody = prosody; 16 local prosody = prosody;
17 local resolve_path = configmanager.resolve_relative_path; 17 local resolve_path = configmanager.resolve_relative_path;
18 local config_path = prosody.paths.config; 18 local config_path = prosody.paths.config;
19 19
20 local luasec_major, luasec_minor = ssl and ssl._VERSION:match("^(%d+)%.(%d+)"); 20 local luasec_has_noticket;
21 local luasec_has_noticket = ssl and (tonumber(luasec_major)>0 or tonumber(luasec_minor)>=4); 21 if ssl then
22 local luasec_major, luasec_minor = ssl._VERSION:match("^(%d+)%.(%d+)");
23 luasec_has_noticket = tonumber(luasec_major)>0 or tonumber(luasec_minor)>=4;
24 end
22 25
23 module "certmanager" 26 module "certmanager"
24 27
25 -- Global SSL options if not overridden per-host 28 -- Global SSL options if not overridden per-host
26 local default_ssl_config = configmanager.get("*", "core", "ssl"); 29 local default_ssl_config = configmanager.get("*", "core", "ssl");