diff options
author | Kim Alvefur <zash@zash.se> | 2017-11-20 00:27:26 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-11-20 00:27:26 +0100 |
commit | 9690a86204e8f78d9ae7d441874c0a571a9ee45a (patch) | |
tree | 572706d1393b2c35931177d8f81d140697a74e97 /core | |
parent | aa6ed63bd8e08c3db5c2b364883e91bd28cea2f4 (diff) | |
download | prosody-9690a86204e8f78d9ae7d441874c0a571a9ee45a.tar.gz prosody-9690a86204e8f78d9ae7d441874c0a571a9ee45a.zip |
certmanager: Set single curve conditioned on LuaSec advertising EC crypto support
Diffstat (limited to 'core')
-rw-r--r-- | core/certmanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua index e13a5d8e..f343b6d7 100644 --- a/core/certmanager.lua +++ b/core/certmanager.lua @@ -114,7 +114,7 @@ local core_defaults = { 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", |