# HG changeset patch # User Kim Alvefur # Date 1511134046 -3600 # Node ID a3cf899fd61b72fb9e16ce743172f75a72a15ec6 # Parent ca52d40e74daf1cd1f027b4bd96ce700c7bc785a certmanager: Set single curve conditioned on LuaSec advertising EC crypto support diff -r ca52d40e74da -r a3cf899fd61b 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",