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 @@ -751,29 +751,21 @@ local default_tls_options = openssl_ctx.OP_NO_COMPRESSION
751
751
+ openssl_ctx .OP_NO_SSLv2
752
752
+ openssl_ctx .OP_NO_SSLv3
753
753
754
- local client_params = openssl_verify_param .new ()
755
- client_params :setPurpose (" sslserver" ) -- the purpose the peer has to present
756
-
757
754
local function new_client_context ()
758
755
local ctx = openssl_ctx .new (" TLS" , false )
759
756
ctx :setCipherList (intermediate_cipher_list )
760
757
ctx :setOptions (default_tls_options )
761
- ctx :setParam (client_params )
762
758
ctx :setEphemeralKey (openssl_pkey .new { type = " EC" , curve = " prime256v1" })
763
759
local store = ctx :getStore ()
764
760
store :addDefaults ()
765
761
ctx :setVerify (openssl_ctx .VERIFY_PEER )
766
762
return ctx
767
763
end
768
764
769
- local server_params = openssl_verify_param .new ()
770
- server_params :setPurpose (" sslclient" ) -- the purpose the peer has to present
771
-
772
765
local function new_server_context ()
773
766
local ctx = openssl_ctx .new (" TLS" , true )
774
767
ctx :setCipherList (intermediate_cipher_list )
775
768
ctx :setOptions (default_tls_options )
776
- ctx :setParam (server_params )
777
769
ctx :setEphemeralKey (openssl_pkey .new { type = " EC" , curve = " prime256v1" })
778
770
return ctx
779
771
end
You can’t perform that action at this time.
0 commit comments