Changeset

5815:b93d096607b4

certmanager: Fix for working around a bug with LuaSec 0.4.1 that causes it to not honour the 'ciphers' option. This change will apply 0.9's default cipher string for LuaSec 0.4.1 users.
author Matthew Wild <mwild1@gmail.com>
date Tue, 03 Sep 2013 12:11:11 +0100
parents 5813:c888f548876b
children 5816:20e2b588f8c2
files core/certmanager.lua
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/core/certmanager.lua	Mon Sep 02 20:52:19 2013 +0100
+++ b/core/certmanager.lua	Tue Sep 03 12:11:11 2013 +0100
@@ -74,11 +74,11 @@
 
 	local ctx, err = ssl_newcontext(ssl_config);
 
-	-- LuaSec ignores the cipher list from the config, so we have to take care
-	-- of it ourselves (W/A for #x)
-	if ctx and user_ssl_config.ciphers then
+	-- COMPAT: LuaSec 0.4.1 ignores the cipher list from the config, so we have to take
+	-- care of it ourselves...
+	if ctx and ssl_config.ciphers then
 		local success;
-		success, err = ssl.context.setcipher(ctx, user_ssl_config.ciphers);
+		success, err = ssl.context.setcipher(ctx, ssl_config.ciphers);
 		if not success then ctx = nil; end
 	end