Skip to content

Commit 0e69cf3

Browse files
committed
Remove unused ssl_context_for.
1 parent 15421b5 commit 0e69cf3

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

lib/async/http/faraday/adapter.rb

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,6 @@ def endpoints_for(env)
4545
yield Async::HTTP::Endpoint.new(url)
4646
end
4747
end
48-
49-
def ssl_context_for(options)
50-
OpenSSL::SSL::SSLContext.new.tap do |context|
51-
context.set_params(
52-
verify_mode: options.fetch(:verify, true) ? OpenSSL::SSL::VERIFY_PEER : OpenSSL::SSL::VERIFY_NONE,
53-
# cert_store: ssl_cert_store(ssl),
54-
# cert: options[:client_cert],
55-
# key: options[:client_key],
56-
# ca_file: ssl[:ca_file],
57-
# ca_path: ssl[:ca_path],
58-
# verify_depth: ssl[:verify_depth],
59-
# version: ssl[:version],
60-
)
61-
end
62-
end
6348
end
6449
end
6550
end

0 commit comments

Comments
 (0)