Software /
code /
prosody
Comparison
core/certmanager.lua @ 7531:2db68d1a6eeb
certmanager: Assume default config path of '.' (fixes prosodyctl check certs when not installed)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 29 Jul 2016 11:24:28 +0200 |
parent | 7319:afa83f3ccaad |
child | 7663:54424e981796 |
comparison
equal
deleted
inserted
replaced
7529:bdaff978c790 | 7531:2db68d1a6eeb |
---|---|
31 local io_open = io.open; | 31 local io_open = io.open; |
32 local select = select; | 32 local select = select; |
33 | 33 |
34 local prosody = prosody; | 34 local prosody = prosody; |
35 local resolve_path = require"util.paths".resolve_relative_path; | 35 local resolve_path = require"util.paths".resolve_relative_path; |
36 local config_path = prosody.paths.config; | 36 local config_path = prosody.paths.config or "."; |
37 | 37 |
38 local luasec_major, luasec_minor = ssl._VERSION:match("^(%d+)%.(%d+)"); | 38 local luasec_major, luasec_minor = ssl._VERSION:match("^(%d+)%.(%d+)"); |
39 local luasec_version = tonumber(luasec_major) * 100 + tonumber(luasec_minor); | 39 local luasec_version = tonumber(luasec_major) * 100 + tonumber(luasec_minor); |
40 local luasec_has = { | 40 local luasec_has = { |
41 -- TODO If LuaSec ever starts exposing these things itself, use that instead | 41 -- TODO If LuaSec ever starts exposing these things itself, use that instead |