Changeset

8405:a3cf899fd61b

certmanager: Set single curve conditioned on LuaSec advertising EC crypto support
author Kim Alvefur <zash@zash.se>
date Mon, 20 Nov 2017 00:27:26 +0100
parents 8404:ca52d40e74da
children 8406:e39edc6d1523 8409:e98b4352d7df
files core/certmanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/certmanager.lua	Mon Nov 20 00:26:41 2017 +0100
+++ b/core/certmanager.lua	Mon Nov 20 00:27:26 2017 +0100
@@ -114,7 +114,7 @@
 		single_ecdh_use = luasec_has.options.single_ecdh_use;
 	};
 	verifyext = { "lsec_continue", "lsec_ignore_purpose" };
-	curve = "secp384r1";
+	curve = luasec_has.algorithms.ec and not luasec_has.capabilities.curves_list and "secp384r1";
 	curveslist = {
 		"X25519",
 		"P-384",