certmanager: Fix compat for MattJs old LuaSec fork
authorKim Alvefur <zash@zash.se>
Thu, 05 Feb 2015 17:23:53 +0100
changeset 6573 70e65ac65219
parent 6572 e6ff3ec99f24
child 6574 4a864b6e8963
child 6579 b7796a46aec2
certmanager: Fix compat for MattJs old LuaSec fork
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);