Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
8404:ca52d40e74da | 8405:a3cf899fd61b |
---|---|
112 no_compression = luasec_has.options.no_compression and configmanager.get("*", "ssl_compression") ~= true; | 112 no_compression = luasec_has.options.no_compression and configmanager.get("*", "ssl_compression") ~= true; |
113 single_dh_use = luasec_has.options.single_dh_use; | 113 single_dh_use = luasec_has.options.single_dh_use; |
114 single_ecdh_use = luasec_has.options.single_ecdh_use; | 114 single_ecdh_use = luasec_has.options.single_ecdh_use; |
115 }; | 115 }; |
116 verifyext = { "lsec_continue", "lsec_ignore_purpose" }; | 116 verifyext = { "lsec_continue", "lsec_ignore_purpose" }; |
117 curve = "secp384r1"; | 117 curve = luasec_has.algorithms.ec and not luasec_has.capabilities.curves_list and "secp384r1"; |
118 curveslist = { | 118 curveslist = { |
119 "X25519", | 119 "X25519", |
120 "P-384", | 120 "P-384", |
121 "P-256", | 121 "P-256", |
122 "P-521", | 122 "P-521", |