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
751751 + openssl_ctx .OP_NO_SSLv2
752752 + openssl_ctx .OP_NO_SSLv3
753753
754- local client_params = openssl_verify_param .new ()
755- client_params :setPurpose (" sslserver" ) -- the purpose the peer has to present
756-
757754local function new_client_context ()
758755 local ctx = openssl_ctx .new (" TLS" , false )
759756 ctx :setCipherList (intermediate_cipher_list )
760757 ctx :setOptions (default_tls_options )
761- ctx :setParam (client_params )
762758 ctx :setEphemeralKey (openssl_pkey .new { type = " EC" , curve = " prime256v1" })
763759 local store = ctx :getStore ()
764760 store :addDefaults ()
765761 ctx :setVerify (openssl_ctx .VERIFY_PEER )
766762 return ctx
767763end
768764
769- local server_params = openssl_verify_param .new ()
770- server_params :setPurpose (" sslclient" ) -- the purpose the peer has to present
771-
772765local function new_server_context ()
773766 local ctx = openssl_ctx .new (" TLS" , true )
774767 ctx :setCipherList (intermediate_cipher_list )
775768 ctx :setOptions (default_tls_options )
776- ctx :setParam (server_params )
777769 ctx :setEphemeralKey (openssl_pkey .new { type = " EC" , curve = " prime256v1" })
778770 return ctx
779771end
You can’t perform that action at this time.
0 commit comments