status_i = status_o = FAILED;
encr_i = encr_r = integ_i = integ_r = chunk_empty;
- tsi = linked_list_create();
- tsr = linked_list_create();
- tsi->insert_last(tsi, this->tsi->clone(this->tsi));
- tsr->insert_last(tsr, this->tsr->clone(this->tsr));
+ tsi = linked_list_create_with_items(this->tsi->clone(this->tsi), NULL);
+ tsr = linked_list_create_with_items(this->tsr->clone(this->tsr), NULL);
if (this->initiator)
{
charon->bus->narrow(charon->bus, this->child_sa,
{
this->tsr = select_ts(this, FALSE, NULL);
}
- tsi = linked_list_create();
- tsr = linked_list_create();
- tsi->insert_last(tsi, this->tsi);
- tsr->insert_last(tsr, this->tsr);
+ tsi = linked_list_create_with_items(this->tsi, NULL);
+ tsr = linked_list_create_with_items(this->tsr, NULL);
this->tsi = this->tsr = NULL;
charon->bus->narrow(charon->bus, this->child_sa,
NARROW_INITIATOR_PRE_AUTH, tsi, tsr);
return FAILED;
}
peer_cfg = this->ike_sa->get_peer_cfg(this->ike_sa);
- tsi = linked_list_create();
- tsr = linked_list_create();
- tsi->insert_last(tsi, this->tsi);
- tsr->insert_last(tsr, this->tsr);
+ tsi = linked_list_create_with_items(this->tsi, NULL);
+ tsr = linked_list_create_with_items(this->tsr, NULL);
this->tsi = this->tsr = NULL;
this->config = peer_cfg->select_child_cfg(peer_cfg, tsr, tsi,
get_dynamic_host(this->ike_sa, TRUE),
this->ike_sa->get_other_host(this->ike_sa),
this->config, this->reqid, this->udp);
- tsi = linked_list_create();
- tsr = linked_list_create();
- tsi->insert_last(tsi, this->tsi);
- tsr->insert_last(tsr, this->tsr);
+ tsi = linked_list_create_with_items(this->tsi, NULL);
+ tsr = linked_list_create_with_items(this->tsr, NULL);
this->tsi = this->tsr = NULL;
charon->bus->narrow(charon->bus, this->child_sa,
NARROW_RESPONDER, tsr, tsi);