Method: Vines::Stream#ssl_verify_peer
- Defined in:
- lib/vines/stream.rb
#ssl_verify_peer(pem) ⇒ Object
102 103 104 105 106 107 108 109 |
# File 'lib/vines/stream.rb', line 102 def ssl_verify_peer(pem) # EM is supposed to close the connection when this returns false, # but it only does that for inbound connections, not when we # make a connection to another server. @store.trusted?(pem).tap do |trusted| close_connection unless trusted end end |