'Send a message to the flow.'

def SendOKStatus(self, response_id, session_id):

    message = rdf_flows.GrrMessage(request_id=1, response_id=response_id, session_id=session_id, type=rdf_flows.GrrMessage.Type.STATUS, auth_state=rdf_flows.GrrMessage.AuthorizationState.AUTHENTICATED)
    status = rdf_flows.GrrStatus(status=rdf_flows.GrrStatus.ReturnedStatus.OK)
    message.payload = status
    self.SendMessage(message)
