aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-07-23 09:17:11 +0100
committerMatthew Wild <mwild1@gmail.com>2010-07-23 09:17:11 +0100
commitbb6d7b0d22622dce365e26793093b11b4582795b (patch)
treef48e1c5a9bb5fd5b0edd4f42f72ffaff4ca248c1 /core
parentd6c48d6e9ea256e37ff41c07ed5e9cd77a65805c (diff)
downloadprosody-bb6d7b0d22622dce365e26793093b11b4582795b.tar.gz
prosody-bb6d7b0d22622dce365e26793093b11b4582795b.zip
certmanager: Don't disable LuaSec and future cert loading on failure, and add error messages to the no LuaSec/config cases (thanks Jakob)
Diffstat (limited to 'core')
-rw-r--r--core/certmanager.lua5
1 files changed, 3 insertions, 2 deletions
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()