We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c3ed07 commit 169c1a7Copy full SHA for 169c1a7
spec/tls_spec.lua
@@ -17,14 +17,15 @@ describe("http.tls module", function()
17
local s, c = ca.assert(cs.pair())
18
local cq = cqueues.new()
19
cq:wrap(function()
20
- local ctx = openssl_ctx.new("TLSv1", false)
+ local ctx = openssl_ctx.new("TLS", false)
21
assert(c:starttls(ctx))
22
local ssl = assert(s:checktls())
23
local cipher = ssl:getCipherInfo()
24
assert(tls.banned_ciphers[cipher.name])
25
end)
26
27
- local ctx = openssl_ctx.new("TLSv1", true)
+ local ctx = openssl_ctx.new("TLS", true)
28
+ ctx:setOptions(openssl_ctx.OP_NO_TLSv1_3)
29
ctx:setCipherList(banned_cipher_list)
30
ctx:setEphemeralKey(openssl_pkey.new{ type = "EC", curve = "prime256v1" })
31
local crt = openssl_x509.new()
0 commit comments