Comparison

core/certmanager.lua @ 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
parent 2739:7339c2720b39
child 3400:502a634f0578
comparison
equal deleted inserted replaced
3317:82b17b199d68 3399:3976bad56640
46 end 46 end
47 log("error", "SSL/TLS: Failed to load %s: %s", file, reason); 47 log("error", "SSL/TLS: Failed to load %s: %s", file, reason);
48 else 48 else
49 log("error", "SSL/TLS: Error initialising for host %s: %s", host, err ); 49 log("error", "SSL/TLS: Error initialising for host %s: %s", host, err );
50 end 50 end
51 ssl = false
52 end 51 end
53 return ctx, err; 52 return ctx, err;
53 elseif not ssl then
54 return nil, "LuaSec (required for encryption) was not found";
54 end 55 end
55 return nil; 56 return nil, "No SSL/TLS configuration present for "..host;
56 end 57 end
57 58
58 function reload_ssl_config() 59 function reload_ssl_config()
59 default_ssl_config = configmanager.get("*", "core", "ssl"); 60 default_ssl_config = configmanager.get("*", "core", "ssl");
60 end 61 end