Mercurial > prosody-hg
comparison util/sslconfig.lua @ 8278:a349299038ff
util.sslconfig: Treat 'curveslist', added in LuaSec 0.7, as a colon-separated list, like ciphers (see #879, #943, #951)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 27 Sep 2017 15:38:46 +0200 |
| parents | 194f540e13e2 |
| children | 4f0f5b49bb03 |
comparison
equal
deleted
inserted
replaced
| 8277:57c5dd08ff0a | 8278:a349299038ff |
|---|---|
| 61 return t_concat(cipherlist, ":"); | 61 return t_concat(cipherlist, ":"); |
| 62 end | 62 end |
| 63 return cipherlist; | 63 return cipherlist; |
| 64 end | 64 end |
| 65 | 65 |
| 66 -- Curve list too | |
| 67 finalisers.curveslist = finalisers.ciphers; | |
| 68 | |
| 66 -- protocol = "x" should enable only that protocol | 69 -- protocol = "x" should enable only that protocol |
| 67 -- protocol = "x+" should enable x and later versions | 70 -- protocol = "x+" should enable x and later versions |
| 68 | 71 |
| 69 local protocols = { "sslv2", "sslv3", "tlsv1", "tlsv1_1", "tlsv1_2" }; | 72 local protocols = { "sslv2", "sslv3", "tlsv1", "tlsv1_1", "tlsv1_2" }; |
| 70 for i = 1, #protocols do protocols[protocols[i] .. "+"] = i - 1; end | 73 for i = 1, #protocols do protocols[protocols[i] .. "+"] = i - 1; end |
