certmanager: Fix for working around a bug with LuaSec 0.4.1 that causes it to not...
authorMatthew Wild <mwild1@gmail.com>
Tue, 3 Sep 2013 11:11:11 +0000 (12:11 +0100)
committerMatthew Wild <mwild1@gmail.com>
Tue, 3 Sep 2013 11:11:11 +0000 (12:11 +0100)
core/certmanager.lua

index 5dee58765bcbf72a81a0fe74c3d2b8a6166bb677..5aec22b342a69d02a8fe2adb164da9f6befd949f 100644 (file)
@@ -74,11 +74,11 @@ function create_context(host, mode, user_ssl_config)
 
        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