# HG changeset patch # User Kim Alvefur # Date 1381793836 -7200 # Node ID 1c3ebd3009fecc2994824a81eb850232e72152b8 # Parent e80916ce8d32ba1654fa9c4fe2f63e5337b57457 certmanager: Add back single_dh_use and single_ecdh_use to default options (Zash breaks, Zash unbreaks) diff -r e80916ce8d32 -r 1c3ebd3009fe core/certmanager.lua --- 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)