'Connect this wrapper to the given transport and initialize the
necessary L{OpenSSL.SSL.Connection} with a memory BIO.'

def makeConnection(self, transport):

    self._tlsConnection = self.factory._createConnection(self)
    self._appSendBuffer = []
    for interface in providedBy(transport):
        directlyProvides(self, interface)
    Protocol.makeConnection(self, transport)
    self.factory.registerProtocol(self)
    if self._connectWrapped:
        ProtocolWrapper.makeConnection(self, transport)
    self._checkHandshakeStatus()
