Module Rev::SSL
In: ext/rev/rev_buffer.c
lib/rev/ssl.rb

The easiest way to add SSL support to your Rev applications is to use the SSLSocket class. However, the SSL module is provided for cases where you‘ve already subclassed TCPSocket and want to optionally provide SSL support in that class.

This module monkeypatches Rev::IO to include SSL support. This can be accomplished by extending any Rev:IO (or subclass) object with Rev::SSL after the connection has completed, e.g.

  class MySocket < Rev::TCPSocket
    def on_connect
      extend Rev::SSL
      ssl_client_start
    end
  end

Methods

Classes and Modules

Class Rev::SSL::IO

Public Instance methods

Start SSL explicitly in client mode. After calling this, callbacks will fire for checking the peer certificate (ssl_peer_cert) and its validity (ssl_verify_result)

Start SSL explicitly in server mode. After calling this, callbacks will fire for checking the peer certificate (ssl_peer_cert) and its validity (ssl_verify_result)

Protected Instance methods

[Validate]