# HG changeset patch # User Kim Alvefur # Date 1397511275 -7200 # Node ID 524060125f9c499cef7be91cfc3d228f9b281d95 # Parent 6498554adb0d4b418827d83015ca546d7e297b3f certmanager: Concatenate cipher list if given as a table diff -r 6498554adb0d -r 524060125f9c core/certmanager.lua --- a/core/certmanager.lua Mon Apr 14 23:09:28 2014 +0200 +++ b/core/certmanager.lua Mon Apr 14 23:34:35 2014 +0200 @@ -15,6 +15,7 @@ local pairs = pairs; local type = type; local io_open = io.open; +local t_concat = table.concat; local prosody = prosody; local resolve_path = configmanager.resolve_relative_path; @@ -87,6 +88,11 @@ end end + -- Allow the cipher list to be a table + if type(user_ssl_config.ciphers) == "table" then + user_ssl_config.ciphers = t_concat(user_ssl_config.ciphers, ":") + end + if mode == "server" then if not user_ssl_config.key then return nil, "No key present in SSL/TLS configuration for "..host; end if not user_ssl_config.certificate then return nil, "No certificate present in SSL/TLS configuration for "..host; end