certmanager: Set single curve conditioned on LuaSec advertising EC crypto support
authorKim Alvefur <zash@zash.se>
Mon, 20 Nov 2017 00:27:26 +0100
changeset 8408 a3cf899fd61b
parent 8407 ca52d40e74da
child 8409 e39edc6d1523
child 8412 e98b4352d7df
certmanager: Set single curve conditioned on LuaSec advertising EC crypto support
core/certmanager.lua
--- 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",