Skip to content

Commit 169c1a7

Browse files
committed
spec/tls_spec: make sure TLS 1.3 isn't used in banned ciphers test
1 parent 3c3ed07 commit 169c1a7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/tls_spec.lua

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,15 @@ describe("http.tls module", function()
1717
local s, c = ca.assert(cs.pair())
1818
local cq = cqueues.new()
1919
cq:wrap(function()
20-
local ctx = openssl_ctx.new("TLSv1", false)
20+
local ctx = openssl_ctx.new("TLS", false)
2121
assert(c:starttls(ctx))
2222
local ssl = assert(s:checktls())
2323
local cipher = ssl:getCipherInfo()
2424
assert(tls.banned_ciphers[cipher.name])
2525
end)
2626
cq:wrap(function()
27-
local ctx = openssl_ctx.new("TLSv1", true)
27+
local ctx = openssl_ctx.new("TLS", true)
28+
ctx:setOptions(openssl_ctx.OP_NO_TLSv1_3)
2829
ctx:setCipherList(banned_cipher_list)
2930
ctx:setEphemeralKey(openssl_pkey.new{ type = "EC", curve = "prime256v1" })
3031
local crt = openssl_x509.new()

0 commit comments

Comments
 (0)