* List of tasks initiated by peer
*/
linked_list_t *passive_tasks;
-
- /**
- * ike_sa_init message we sent, stored here for later authentication
- */
- packet_t *ike_sa_init;
};
/**
/* reset message counters and retransmit packets */
DESTROY_IF(this->responding.packet);
DESTROY_IF(this->initiating.packet);
- DESTROY_IF(this->ike_sa_init);
this->responding.packet = NULL;
this->initiating.packet = NULL;
- this->ike_sa_init = NULL;
this->responding.mid = 0;
- this->initiating.mid = -1;
+ this->initiating.mid = 0;
+ this->initiating.type = EXCHANGE_TYPE_UNDEFINED;
/* reset active tasks */
while (this->active_tasks->remove_last(this->active_tasks,
this->active_tasks->destroy(this->active_tasks);
DESTROY_IF(this->responding.packet);
DESTROY_IF(this->initiating.packet);
- DESTROY_IF(this->ike_sa_init);
free(this);
}
this->queued_tasks = linked_list_create();
this->active_tasks = linked_list_create();
this->passive_tasks = linked_list_create();
- this->ike_sa_init = NULL;
return &this->public;
}