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()
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 ()
You can’t perform that action at this time.
0 commit comments