aboutsummaryrefslogtreecommitdiffstats
path: root/util
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
parentCHANGES: Update with new branch (diff)
downloadprosody-ed25cd6f8577b56c19ea3fc1473a2b7d2779c9b2.tar.xz
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')
-rw-r--r--util/sslconfig.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sslconfig.lua b/util/sslconfig.lua
index 5c685f7d9..a5827a768 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