'Create a TLS connection for a client.
@note: This will call C{set_app_data} on its connection.  If you\'re
delegating to this implementation of this method, don\'t ever call
C{set_app_data} or C{set_info_callback} on the returned connection,
or you\'ll break the implementation of various features of this
class.
@param tlsProtocol: the TLS protocol initiating the connection.
@type tlsProtocol: L{twisted.protocols.tls.TLSMemoryBIOProtocol}
@return: the configured client connection.
@rtype: L{OpenSSL.SSL.Connection}'

def clientConnectionForTLS(self, tlsProtocol):

    context = self._ctx
    connection = SSL.Connection(context, None)
    connection.set_app_data(tlsProtocol)
    return connection
