aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-02-05 17:23:53 +0100
committerKim Alvefur <zash@zash.se>2015-02-05 17:23:53 +0100
commitb7a38c8c93f8e6bee2579de6b9468fbb68c14589 (patch)
tree8eee74c822461a38bffc62893447aa18b397da8c /core
parentf71511593905934d2311b214b867a63a5e06d541 (diff)
downloadprosody-b7a38c8c93f8e6bee2579de6b9468fbb68c14589.tar.gz
prosody-b7a38c8c93f8e6bee2579de6b9468fbb68c14589.zip
certmanager: Fix compat for MattJs old LuaSec fork
Diffstat (limited to 'core')
-rw-r--r--core/certmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua
index e016aa97..b40c13c1 100644
--- a/core/certmanager.lua
+++ b/core/certmanager.lua
@@ -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);