parameters: (self)
return_statement: return pysession
docstring: Returns the Session currently used.
  
          :return: An instance of :class:`OpenSSL.SSL.Session` or
              :obj:`None` if no session exists.
  
          .. versionadded:: 0.14
docstring_summary: Returns the Session currently used.
docstring_tokens: Returns the Session currently used .
function: def get_session(self):
          """
          Returns the Session currently used.
  
          :return: An instance of :class:`OpenSSL.SSL.Session` or
              :obj:`None` if no session exists.
  
          .. versionadded:: 0.14
          """
          session = _lib.SSL_get1_session(self._ssl)
          if session == _ffi.NULL:
              return None
  
          pysession = Session.__new__(Session)
          pysession._session = _ffi.gc(session, _lib.SSL_SESSION_free)
          return pysession
function_tokens: def get_session ( self ) : session = _lib . SSL_get1_session ( self . _ssl ) if session == _ffi . NULL : return None pysession = Session . __new__ ( Session ) pysession . _session = _ffi . gc ( session , _lib . SSL_SESSION_free ) return pysession