Diff

core/certmanager.lua @ 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
parent 8404:ca52d40e74da
child 8494:4f75f4da6d4e
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",