Comparison

util/sslconfig.lua @ 10920:c171b4c59bd1

util.sslconfig: Process TLS 1.3-specific cipher list Same way as with other cipher list options
author Kim Alvefur <zash@zash.se>
date Sun, 07 Jun 2020 02:14:55 +0200
parent 9584:2860f8dabf35
child 12480:7e9ebdc75ce4
comparison
equal deleted inserted replaced
10919:8cde06b38fdb 10920:c171b4c59bd1
65 end 65 end
66 66
67 -- Curve list too 67 -- Curve list too
68 finalisers.curveslist = finalisers.ciphers; 68 finalisers.curveslist = finalisers.ciphers;
69 69
70 -- TLS 1.3 ciphers
71 finalisers.ciphersuites = finalisers.ciphers;
72
70 -- protocol = "x" should enable only that protocol 73 -- protocol = "x" should enable only that protocol
71 -- protocol = "x+" should enable x and later versions 74 -- protocol = "x+" should enable x and later versions
72 75
73 local protocols = { "sslv2", "sslv3", "tlsv1", "tlsv1_1", "tlsv1_2", "tlsv1_3" }; 76 local protocols = { "sslv2", "sslv3", "tlsv1", "tlsv1_1", "tlsv1_2", "tlsv1_3" };
74 for i = 1, #protocols do protocols[protocols[i] .. "+"] = i - 1; end 77 for i = 1, #protocols do protocols[protocols[i] .. "+"] = i - 1; end