Software / code / prosody
Comparison
core/certmanager.lua @ 11548:55ef50d6cf65 0.11
core.certmanager: Attempt to directly access LuaSec config table
Due to a bug this field was not properly exported before
See https://github.com/brunoos/luasec/issues/149
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 26 Apr 2021 15:30:13 +0200 |
| parent | 10721:3a1b1d3084fb |
| child | 11549:5a484bd050a7 |
comparison
equal
deleted
inserted
replaced
| 11547:dd21eb632f52 | 11548:55ef50d6cf65 |
|---|---|
| 36 local resolve_path = require"util.paths".resolve_relative_path; | 36 local resolve_path = require"util.paths".resolve_relative_path; |
| 37 local config_path = prosody.paths.config or "."; | 37 local config_path = prosody.paths.config or "."; |
| 38 | 38 |
| 39 local luasec_major, luasec_minor = ssl._VERSION:match("^(%d+)%.(%d+)"); | 39 local luasec_major, luasec_minor = ssl._VERSION:match("^(%d+)%.(%d+)"); |
| 40 local luasec_version = tonumber(luasec_major) * 100 + tonumber(luasec_minor); | 40 local luasec_version = tonumber(luasec_major) * 100 + tonumber(luasec_minor); |
| 41 local luasec_has = softreq"ssl.config" or { | 41 local luasec_has = ssl.config or softreq"ssl.config" or { |
| 42 algorithms = { | 42 algorithms = { |
| 43 ec = luasec_version >= 5; | 43 ec = luasec_version >= 5; |
| 44 }; | 44 }; |
| 45 capabilities = { | 45 capabilities = { |
| 46 curves_list = luasec_version >= 7; | 46 curves_list = luasec_version >= 7; |