Mercurial > prosody-hg
comparison core/certmanager.lua @ 6570:70e65ac65219
certmanager: Fix compat for MattJs old LuaSec fork
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 05 Feb 2015 17:23:53 +0100 |
| parents | e6ff3ec99f24 |
| children | 6236668da30a |
comparison
equal
deleted
inserted
replaced
| 6569:e6ff3ec99f24 | 6570:70e65ac65219 |
|---|---|
| 69 } | 69 } |
| 70 local path_options = { -- These we pass through resolve_path() | 70 local path_options = { -- These we pass through resolve_path() |
| 71 key = true, certificate = true, cafile = true, capath = true, dhparam = true | 71 key = true, certificate = true, cafile = true, capath = true, dhparam = true |
| 72 } | 72 } |
| 73 | 73 |
| 74 if not luasec_has_verifyext and ssl_x509 then | 74 if luasec_version < 5 and ssl_x509 then |
| 75 -- COMPAT mw/luasec-hg | 75 -- COMPAT mw/luasec-hg |
| 76 for i=1,#core_defaults.verifyext do -- Remove lsec_ prefix | 76 for i=1,#core_defaults.verifyext do -- Remove lsec_ prefix |
| 77 core_defaults.verify[#core_defaults.verify+1] = core_defaults.verifyext[i]:sub(6); | 77 core_defaults.verify[#core_defaults.verify+1] = core_defaults.verifyext[i]:sub(6); |
| 78 end | 78 end |
| 79 end | 79 end |
