# HG changeset patch # User Kim Alvefur # Date 1423153433 -3600 # Node ID 70e65ac6521948eaee45ef289a4dda4d8997b507 # Parent e6ff3ec99f249ddf4c0a663b94d7253015196f38 certmanager: Fix compat for MattJs old LuaSec fork diff -r e6ff3ec99f24 -r 70e65ac65219 core/certmanager.lua --- a/core/certmanager.lua Thu Feb 05 17:21:05 2015 +0100 +++ b/core/certmanager.lua Thu Feb 05 17:23:53 2015 +0100 @@ -71,7 +71,7 @@ key = true, certificate = true, cafile = true, capath = true, dhparam = true } -if not luasec_has_verifyext and ssl_x509 then +if luasec_version < 5 and ssl_x509 then -- COMPAT mw/luasec-hg for i=1,#core_defaults.verifyext do -- Remove lsec_ prefix core_defaults.verify[#core_defaults.verify+1] = core_defaults.verifyext[i]:sub(6);