From bb6d7b0d22622dce365e26793093b11b4582795b Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 23 Jul 2010 09:17:11 +0100 Subject: certmanager: Don't disable LuaSec and future cert loading on failure, and add error messages to the no LuaSec/config cases (thanks Jakob) --- core/certmanager.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/certmanager.lua') diff --git a/core/certmanager.lua b/core/certmanager.lua index fa920b91..3dd06585 100644 --- a/core/certmanager.lua +++ b/core/certmanager.lua @@ -48,11 +48,12 @@ function create_context(host, mode, config) else log("error", "SSL/TLS: Error initialising for host %s: %s", host, err ); end - ssl = false end return ctx, err; + elseif not ssl then + return nil, "LuaSec (required for encryption) was not found"; end - return nil; + return nil, "No SSL/TLS configuration present for "..host; end function reload_ssl_config() -- cgit v1.2.3