Software / code / prosody
Comparison
core/certmanager.lua @ 10226:77f900bbbf25
Remove COMPAT with temporary luasec fork
The changes in the temporary fork were merged into mainline luasec ca
2013 and included in the 0.5 release in 2014.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 25 Aug 2019 23:12:55 +0200 |
| parent | 10224:94e341dee51c |
| child | 10227:eeb711b92da5 |
comparison
equal
deleted
inserted
replaced
| 10225:9bdd9b6bf362 | 10226:77f900bbbf25 |
|---|---|
| 145 end | 145 end |
| 146 | 146 |
| 147 local path_options = { -- These we pass through resolve_path() | 147 local path_options = { -- These we pass through resolve_path() |
| 148 key = true, certificate = true, cafile = true, capath = true, dhparam = true | 148 key = true, certificate = true, cafile = true, capath = true, dhparam = true |
| 149 } | 149 } |
| 150 | |
| 151 if luasec_version < 5 and ssl_x509 then | |
| 152 -- COMPAT mw/luasec-hg | |
| 153 for i=1,#core_defaults.verifyext do -- Remove lsec_ prefix | |
| 154 core_defaults.verify[#core_defaults.verify+1] = core_defaults.verifyext[i]:sub(6); | |
| 155 end | |
| 156 end | |
| 157 | 150 |
| 158 local function create_context(host, mode, ...) | 151 local function create_context(host, mode, ...) |
| 159 local cfg = new_config(); | 152 local cfg = new_config(); |
| 160 cfg:apply(core_defaults); | 153 cfg:apply(core_defaults); |
| 161 local service_name, port = host:match("^(%S+) port (%d+)$"); | 154 local service_name, port = host:match("^(%S+) port (%d+)$"); |