projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ceda139
)
certmanager: Fix nil index if no LuaSec available
author
Kim Alvefur
<zash@zash.se>
Mon, 7 Jan 2013 01:17:07 +0000
(
02:17
+0100)
committer
Kim Alvefur
<zash@zash.se>
Mon, 7 Jan 2013 01:17:07 +0000
(
02:17
+0100)
core/certmanager.lua
patch
|
blob
|
history
diff --git
a/core/certmanager.lua
b/core/certmanager.lua
index a9f8b644f51f701ba6f176173918e280faf31496..8607e618a7f06b42f6f68b8c0860a3c44176630f 100644
(file)
--- a/
core/certmanager.lua
+++ b/
core/certmanager.lua
@@
-33,7
+33,7
@@
local default_verify = (ssl and ssl.x509 and { "peer", "client_once", }) or "non
local default_options = { "no_sslv2", luasec_has_noticket and "no_ticket" or nil };
local default_verifyext = { "lsec_continue", "lsec_ignore_purpose" };
-if not luasec_has_verifyext and ssl.x509 then
+if
ssl and
not luasec_has_verifyext and ssl.x509 then
-- COMPAT mw/luasec-hg
for i=1,#default_verifyext do -- Remove lsec_ prefix
default_verify[#default_verify+1] = default_verifyext[i]:sub(6);