aboutsummaryrefslogtreecommitdiffstats
path: root/core/certmanager.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-10-15 01:37:16 +0200
committerKim Alvefur <zash@zash.se>2013-10-15 01:37:16 +0200
commit65931067bf8d24dc78885fabeed2297864ccebde (patch)
treea0ec05df566e6b2b319dd73cca74ff05e6ddfa90 /core/certmanager.lua
parente82a638911a8d1bb9e85fbbaefcc74adbef4562f (diff)
downloadprosody-65931067bf8d24dc78885fabeed2297864ccebde.tar.gz
prosody-65931067bf8d24dc78885fabeed2297864ccebde.zip
certmanager: Add back single_dh_use and single_ecdh_use to default options (Zash breaks, Zash unbreaks)
Diffstat (limited to 'core/certmanager.lua')
-rw-r--r--core/certmanager.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua
index caa4afce..0709c650 100644
--- a/core/certmanager.lua
+++ b/core/certmanager.lua
@@ -53,8 +53,12 @@ if ssl and not luasec_has_verifyext and ssl.x509 then
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)