Logo Search packages:      
Sourcecode: radicale version File versions  Download package

def radicale::HTTPSServer::__init__ (   self,
  address,
  handler 
)
Create server by wrapping HTTP socket in an SSL socket.

Reimplemented from radicale::HTTPServer.

Definition at line 88 of file __init__.py.

                                        :
        """Create server by wrapping HTTP socket in an SSL socket."""
        # Fails with Python 2.5, import if needed
        # pylint: disable-msg=F0401
        import ssl
        # pylint: enable-msg=F0401

        HTTPServer.__init__(self, address, handler)
        self.socket = ssl.wrap_socket(
            socket.socket(self.address_family, self.socket_type),
            server_side=True,
            certfile=config.get("server", "certificate"),
            keyfile=config.get("server", "key"),
            ssl_version=ssl.PROTOCOL_SSLv23)
        self.server_bind()
        self.server_activate()



Generated by  Doxygen 1.6.0   Back to index