# HG changeset patch # User Matthew Wild # Date 1279873031 -3600 # Node ID 3976bad56640fbbe6b1b38a96487c5eae1642231 # Parent 82b17b199d68ab5baf44b6b2854bba0fd5d60490 certmanager: Don't disable LuaSec and future cert loading on failure, and add error messages to the no LuaSec/config cases (thanks Jakob) diff -r 82b17b199d68 -r 3976bad56640 core/certmanager.lua --- a/core/certmanager.lua Sat Jul 03 11:03:06 2010 +0500 +++ b/core/certmanager.lua Fri Jul 23 09:17:11 2010 +0100 @@ -48,11 +48,12 @@ 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()