Software /
code /
prosody
Changeset
3399:3976bad56640
certmanager: Don't disable LuaSec and future cert loading on failure, and add error messages to the no LuaSec/config cases (thanks Jakob)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 23 Jul 2010 09:17:11 +0100 |
parents | 3317:82b17b199d68 |
children | 3400:502a634f0578 4277:683523db4fe8 |
files | core/certmanager.lua |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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()