Python ssl.SSLObject() Examples

The following are 9 code examples of ssl.SSLObject(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module ssl , or try the search function .
Example #1
Source File: sslproto.py    From Fluid-Designer with GNU General Public License v3.0 5 votes vote down vote up
def ssl_object(self):
        """The internal ssl.SSLObject instance.

        Return None if the pipe is not wrapped.
        """
        return self._sslobj 
Example #2
Source File: sslproto.py    From Imogen with MIT License 5 votes vote down vote up
def ssl_object(self):
        """The internal ssl.SSLObject instance.

        Return None if the pipe is not wrapped.
        """
        return self._sslobj 
Example #3
Source File: sslproto.py    From ironpython3 with Apache License 2.0 5 votes vote down vote up
def ssl_object(self):
        """The internal ssl.SSLObject instance.

        Return None if the pipe is not wrapped.
        """
        return self._sslobj 
Example #4
Source File: sslproto.py    From annotated-py-projects with MIT License 5 votes vote down vote up
def ssl_object(self):
        """The internal ssl.SSLObject instance.

        Return None if the pipe is not wrapped.
        """
        return self._sslobj 
Example #5
Source File: sslproto.py    From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 5 votes vote down vote up
def ssl_object(self):
        """The internal ssl.SSLObject instance.

        Return None if the pipe is not wrapped.
        """
        return self._sslobj 
Example #6
Source File: sslproto.py    From odoo13-x64 with GNU General Public License v3.0 5 votes vote down vote up
def ssl_object(self):
        """The internal ssl.SSLObject instance.

        Return None if the pipe is not wrapped.
        """
        return self._sslobj 
Example #7
Source File: io_tests.py    From amqpstorm with MIT License 5 votes vote down vote up
def test_io_simple_ssl_receive(self):
        connection = FakeConnection()
        connection.parameters['ssl'] = True
        io = IO(connection.parameters)

        self.assertTrue(io.use_ssl)

        if hasattr(ssl, 'SSLObject'):
            io.socket = Mock(name='socket', spec=ssl.SSLObject)
        elif hasattr(ssl, 'SSLSocket'):
            io.socket = Mock(name='socket', spec=ssl.SSLSocket)

        io.socket.read.return_value = '12345'

        self.assertEqual(io._receive(), '12345') 
Example #8
Source File: sslproto.py    From Carnets with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def ssl_object(self):
        """The internal ssl.SSLObject instance.

        Return None if the pipe is not wrapped.
        """
        return self._sslobj 
Example #9
Source File: sslproto.py    From android_universal with MIT License 5 votes vote down vote up
def ssl_object(self):
        """The internal ssl.SSLObject instance.

        Return None if the pipe is not wrapped.
        """
        return self._sslobj