Software /
code /
prosody
Diff
core/certmanager.lua @ 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 |
parent | 5745:a1b0cfebeeba |
child | 5816:20e2b588f8c2 |
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