File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,15 @@ describe("http.tls module", function()
17
17
local s , c = ca .assert (cs .pair ())
18
18
local cq = cqueues .new ()
19
19
cq :wrap (function ()
20
- local ctx = openssl_ctx .new (" TLSv1 " , false )
20
+ local ctx = openssl_ctx .new (" TLS " , false )
21
21
assert (c :starttls (ctx ))
22
22
local ssl = assert (s :checktls ())
23
23
local cipher = ssl :getCipherInfo ()
24
24
assert (tls .banned_ciphers [cipher .name ])
25
25
end )
26
26
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 )
28
29
ctx :setCipherList (banned_cipher_list )
29
30
ctx :setEphemeralKey (openssl_pkey .new { type = " EC" , curve = " prime256v1" })
30
31
local crt = openssl_x509 .new ()
You can’t perform that action at this time.
0 commit comments