call-seq:
ssl.session -> aSession
Returns the SSLSession object currently used, or nil if the session is not established.
418 419 420 421 422
# File 'lib/openssl/ssl.rb', line 418 def session SSL::Session.new(self) rescue SSL::Session::SessionError nil end