Module: RightSupport::Net::SSL
- Defined in:
- lib/right_support/net/ssl.rb,
lib/right_support/net/ssl/open_ssl_patch.rb
Defined Under Namespace
Modules: OpenSSLPatch
Class Method Summary collapse
Class Method Details
.expected_hostname ⇒ Object
29 30 31 |
# File 'lib/right_support/net/ssl.rb', line 29 def expected_hostname Thread.current[:right_support_net_ssl_expected_hostname] end |
.with_expected_hostname(hostname, &block) ⇒ Object
33 34 35 36 37 38 39 40 41 |
# File 'lib/right_support/net/ssl.rb', line 33 def with_expected_hostname(hostname, &block) Thread.current[:right_support_net_ssl_expected_hostname] = hostname block.call rescue Exception => e Thread.current[:right_support_net_ssl_expected_hostname] = nil raise ensure Thread.current[:right_support_net_ssl_expected_hostname] = nil end |