aboutsummaryrefslogtreecommitdiffstats
path: root/util/sslconfig.lua
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
commited25cd6f8577b56c19ea3fc1473a2b7d2779c9b2 (patch)
tree9d4e05fb3651f8fa889e0d46da92025c90fc25d6 /util/sslconfig.lua
parent5914d0d695f740d58389fde8b5870d6c5cd70f23 (diff)
downloadprosody-ed25cd6f8577b56c19ea3fc1473a2b7d2779c9b2.tar.gz
prosody-ed25cd6f8577b56c19ea3fc1473a2b7d2779c9b2.zip
util.sslconfig: Recognise TLS 1.3 as a protocol version
This enables it to understand protocol = "tlsv1_3+"
Diffstat (limited to 'util/sslconfig.lua')
-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