aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-28 16:12:30 +0100
committerKim Alvefur <zash@zash.se>2018-10-28 16:12:30 +0100
commit6d3ae59fb0ca3f853cc0569c7f0f168bbefa7aad (patch)
tree9d4e05fb3651f8fa889e0d46da92025c90fc25d6
parent2046ad42f5365c879bc731782b43500006457185 (diff)
downloadprosody-6d3ae59fb0ca3f853cc0569c7f0f168bbefa7aad.tar.gz
prosody-6d3ae59fb0ca3f853cc0569c7f0f168bbefa7aad.zip
util.sslconfig: Recognise TLS 1.3 as a protocol version
This enables it to understand protocol = "tlsv1_3+"
-rw-r--r--util/sslconfig.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sslconfig.lua b/util/sslconfig.lua
index 5c685f7d..a5827a76 100644
--- a/util/sslconfig.lua
+++ b/util/sslconfig.lua
@@ -70,7 +70,7 @@ finalisers.curveslist = finalisers.ciphers;
-- protocol = "x" should enable only that protocol
-- protocol = "x+" should enable x and later versions
-local protocols = { "sslv2", "sslv3", "tlsv1", "tlsv1_1", "tlsv1_2" };
+local protocols = { "sslv2", "sslv3", "tlsv1", "tlsv1_1", "tlsv1_2", "tlsv1_3" };
for i = 1, #protocols do protocols[protocols[i] .. "+"] = i - 1; end
-- this interacts with ssl.options as well to add no_x