certmanager: Fix compat for MattJs old LuaSec fork
authorKim Alvefur <zash@zash.se>
Thu, 5 Feb 2015 16:23:53 +0000 (17:23 +0100)
committerKim Alvefur <zash@zash.se>
Thu, 5 Feb 2015 16:23:53 +0000 (17:23 +0100)
core/certmanager.lua

index e016aa97b81124b73fc64e02e7e5397dc08ad86d..b40c13c1c8951f906c353cef524cb50ca680cdab 100644 (file)
@@ -71,7 +71,7 @@ local path_options = { -- These we pass through resolve_path()
        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);