Changeset

5678:b7ebeae14053

certmanager: Add single_dh_use and single_ecdh_use to default options
author Matthew Wild <mwild1@gmail.com>
date Thu, 13 Jun 2013 00:45:41 +0100
parents 5676:c1021a2e7071
children 5679:51f7de1b6bb5 5680:24b044f6e06d
files core/certmanager.lua
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/core/certmanager.lua	Thu Jun 13 00:04:04 2013 +0100
+++ b/core/certmanager.lua	Thu Jun 13 00:45:41 2013 +0100
@@ -44,6 +44,11 @@
 	default_options[#default_options+1] = "no_compression";
 end
 
+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";
+end
+
 function create_context(host, mode, user_ssl_config)
 	user_ssl_config = user_ssl_config or default_ssl_config;