'Return all of the identities that have been added to the server'

def agentc_REQUEST_IDENTITIES(self, data):

    assert (data == '')
    numKeys = len(self.factory.keys)
    resp = []
    resp.append(struct.pack('!L', numKeys))
    for (key, comment) in itervalues(self.factory.keys):
        resp.append(NS(key.blob()))
        resp.append(NS(comment))
    self.sendResponse(AGENT_IDENTITIES_ANSWER, ''.join(resp))
