Diff

core/certmanager.lua @ 2564:6b4fe320a6ea

certmanager: Fix traceback with no LuaSec
author Matthew Wild <mwild1@gmail.com>
date Fri, 05 Feb 2010 14:31:25 +0000
parent 2563:1ede33f50ab4
child 2628:04958fb28c44
child 2630:e8fc67b73820
line wrap: on
line diff
--- a/core/certmanager.lua	Fri Feb 05 14:22:48 2010 +0000
+++ b/core/certmanager.lua	Fri Feb 05 14:31:25 2010 +0000
@@ -1,6 +1,6 @@
 local configmanager = require "core.configmanager";
 local ssl = ssl;
-local ssl_newcontext = ssl.newcontext;
+local ssl_newcontext = ssl and ssl.newcontext;
 
 local setmetatable = setmetatable;