Software /
code /
prosody
Comparison
core/certmanager.lua @ 10919:8cde06b38fdb
core.certmanager: Add TODO about LuaSec issue
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 07 Jun 2020 02:12:50 +0200 |
parent | 10722:3ddc7c9f35dc |
child | 11368:0bc3acf37428 |
comparison
equal
deleted
inserted
replaced
10918:b0038e404e0e | 10919:8cde06b38fdb |
---|---|
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 or "."; | 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 -- TODO Use ssl.config instead of require here once we are sure that the fix | |
41 -- in LuaSec has been widely distributed | |
42 -- https://github.com/brunoos/luasec/issues/149 | |
40 local luasec_has = softreq"ssl.config" or { | 43 local luasec_has = softreq"ssl.config" or { |
41 algorithms = { | 44 algorithms = { |
42 ec = luasec_version >= 5; | 45 ec = luasec_version >= 5; |
43 }; | 46 }; |
44 capabilities = { | 47 capabilities = { |