コード例 #1
0
    def get_state(self):
        # type: () -> bytes
        """Return the SSL state of this connection.

        During its use, an SSL objects passes several states. The state
        is internally maintained. Querying the state information is not
        very informative before or when a connection has been
        established. It however can be of significant interest during
        the handshake.

        :return: 6 letter string indicating the current state of the SSL
                 object ssl.
        """
        return m2.ssl_get_state(self.ssl)
コード例 #2
0
ファイル: Connection.py プロジェクト: mcepl/M2Crypto
    def get_state(self):
        # type: () -> bytes
        """Return the SSL state of this connection.

        During its use, an SSL objects passes several states. The state
        is internally maintained. Querying the state information is not
        very informative before or when a connection has been
        established. It however can be of significant interest during
        the handshake.

        :return: 6 letter string indicating the current state of the SSL
                 object ssl.
        """
        return m2.ssl_get_state(self.ssl)
コード例 #3
0
ファイル: Connection.py プロジェクト: Hypernode/M2Crypto
 def get_state(self):
     """Return the SSL state of this connection."""
     return m2.ssl_get_state(self.ssl)
コード例 #4
0
 def get_state(self):
     """Return the SSL state of this connection."""
     return m2.ssl_get_state(self.ssl)