session()
Returns the SSLSession object currently used, or nil if the session is not established.
# File ext/openssl/lib/openssl/ssl.rb, line 404 def session SSL::Session.new(self) rescue SSL::Session::SessionError nil end