Skip to content

Commit

Permalink
Restore @tls_ca_certificates
Browse files Browse the repository at this point in the history
It is exposed in the API, let's keep it that way

References ruby-amqp#555.

(cherry picked from commit 4a0eab7)
  • Loading branch information
michaelklishin committed Jun 5, 2018
1 parent eee1859 commit 929eaa0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/bunny/transport.rb
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,9 @@ def initialize_tls_context(ctx, opts={})
ctx.cert_store = if @tls_certificate_store
@tls_certificate_store
else
initialize_tls_certificate_store(tls_ca_certificates_paths_from(opts))
# this ivar exists so that this value can be exposed in the API
@tls_ca_certificates = tls_ca_certificates_paths_from(opts)
initialize_tls_certificate_store(@tls_ca_certificates)
end

if !@tls_certificate
Expand Down

0 comments on commit 929eaa0

Please sign in to comment.