We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81df2a6 commit d0fac50Copy full SHA for d0fac50
src/test/ruby/ssl/test_ssl.rb
@@ -249,13 +249,15 @@ def test_renegotiation_cb
249
def test_tlsext_hostname
250
return unless OpenSSL::SSL::SSLSocket.instance_methods.include?(:hostname)
251
252
- ctx_proc = Proc.new do |ctx, ssl|
253
- foo_ctx = ctx.dup
+ fooctx = OpenSSL::SSL::SSLContext.new
+ fooctx.cert = @cli_cert
254
+ fooctx.key = @cli_key
255
256
+ ctx_proc = Proc.new do |ctx, ssl|
257
ctx.servername_cb = Proc.new do |ssl2, hostname|
258
case hostname
259
when 'foo.example.com'
- foo_ctx
260
+ fooctx
261
when 'bar.example.com'
262
nil
263
else
0 commit comments