projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a59fecd
)
certmanager: Fix compat for MattJs old LuaSec fork
author
Kim Alvefur
<zash@zash.se>
Thu, 5 Feb 2015 16:23:53 +0000
(17:23 +0100)
committer
Kim Alvefur
<zash@zash.se>
Thu, 5 Feb 2015 16:23:53 +0000
(17:23 +0100)
core/certmanager.lua
patch
|
blob
|
history
diff --git
a/core/certmanager.lua
b/core/certmanager.lua
index e016aa97b81124b73fc64e02e7e5397dc08ad86d..b40c13c1c8951f906c353cef524cb50ca680cdab 100644
(file)
--- 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);