Software /
code /
prosody
Changeset
5872:1c3ebd3009fe
certmanager: Add back single_dh_use and single_ecdh_use to default options (Zash breaks, Zash unbreaks)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 15 Oct 2013 01:37:16 +0200 |
parents | 5871:e80916ce8d32 |
children | 5873:4669bd7038c7 5874:3321a4b3e6c4 |
files | core/certmanager.lua |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/core/certmanager.lua Sun Oct 13 01:43:04 2013 +0200 +++ b/core/certmanager.lua Tue Oct 15 01:37:16 2013 +0200 @@ -53,8 +53,12 @@ end end -if luasec_has_no_compression and configmanager.get("*", "ssl_compression") ~= true then - core_defaults.options[#core_defaults.options+1] = "no_compression"; +if luasec_has_no_compression then -- Has no_compression? Then it has these too... + default_options[#default_options+1] = "single_dh_use"; + default_options[#default_options+1] = "single_ecdh_use"; + if configmanager.get("*", "ssl_compression") ~= true then + core_defaults.options[#core_defaults.options+1] = "no_compression"; + end end function create_context(host, mode, user_ssl_config)