Method: Puppet::SSL::Verifier#reusable?
- Defined in:
- lib/puppet/ssl/verifier.rb
#reusable?(verifier) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return true if ‘self` is reusable with `verifier` meaning they are using the same `ssl_context`, so there’s no loss of security when using a cached connection.
30 31 32 33 |
# File 'lib/puppet/ssl/verifier.rb', line 30 def reusable?(verifier) verifier.instance_of?(self.class) && verifier.ssl_context.object_id == @ssl_context.object_id end |