Skip to content

Commit 73683bf

Browse files
committed
Merge branch 'default-params-are-fine'
2 parents cd9ff6b + bc7b643 commit 73683bf

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

http/tls.lua

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff 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-
757754
local 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
767763
end
768764

769-
local server_params = openssl_verify_param.new()
770-
server_params:setPurpose("sslclient") -- the purpose the peer has to present
771-
772765
local 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
779771
end

0 commit comments

Comments
 (0)