File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -698,29 +698,21 @@ local default_tls_options = openssl_ctx.OP_NO_COMPRESSION
698
698
+ openssl_ctx .OP_NO_SSLv2
699
699
+ openssl_ctx .OP_NO_SSLv3
700
700
701
- local client_params = openssl_verify_param .new ()
702
- client_params :setPurpose (" sslserver" ) -- the purpose the peer has to present
703
-
704
701
local function new_client_context ()
705
702
local ctx = openssl_ctx .new (" TLS" , false )
706
703
ctx :setCipherList (intermediate_cipher_list )
707
704
ctx :setOptions (default_tls_options )
708
- ctx :setParam (client_params )
709
705
ctx :setEphemeralKey (openssl_pkey .new { type = " EC" , curve = " prime256v1" })
710
706
local store = ctx :getStore ()
711
707
store :addDefaults ()
712
708
ctx :setVerify (openssl_ctx .VERIFY_PEER )
713
709
return ctx
714
710
end
715
711
716
- local server_params = openssl_verify_param .new ()
717
- server_params :setPurpose (" sslclient" ) -- the purpose the peer has to present
718
-
719
712
local function new_server_context ()
720
713
local ctx = openssl_ctx .new (" TLS" , true )
721
714
ctx :setCipherList (intermediate_cipher_list )
722
715
ctx :setOptions (default_tls_options )
723
- ctx :setParam (server_params )
724
716
ctx :setEphemeralKey (openssl_pkey .new { type = " EC" , curve = " prime256v1" })
725
717
return ctx
726
718
end
You can’t perform that action at this time.
0 commit comments