Software /
code /
prosody
Diff
core/certmanager.lua @ 5287:676a1a032d2f
certmanager: Fix nil index if no LuaSec available
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 07 Jan 2013 02:17:07 +0100 |
parent | 5282:4cd57cb49f99 |
child | 5377:898454038524 |
line wrap: on
line diff
--- a/core/certmanager.lua Sun Jan 06 04:55:53 2013 +0500 +++ b/core/certmanager.lua Mon Jan 07 02:17:07 2013 +0100 @@ -33,7 +33,7 @@ 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);