allow starter to initiate connections simultaneously (on auto=start)
This commit is contained in:
@@ -290,6 +290,13 @@ static status_t initiate(private_interface_manager_t *this,
|
|||||||
}
|
}
|
||||||
charon->ike_sa_manager->checkin(charon->ike_sa_manager, ike_sa);
|
charon->ike_sa_manager->checkin(charon->ike_sa_manager, ike_sa);
|
||||||
|
|
||||||
|
if (callback == NULL)
|
||||||
|
{
|
||||||
|
/* don't wait for a result if no callback is specified */
|
||||||
|
charon->bus->set_listen_state(charon->bus, FALSE);
|
||||||
|
return NEED_MORE;
|
||||||
|
}
|
||||||
|
|
||||||
/* wait until we get a result */
|
/* wait until we get a result */
|
||||||
while (TRUE)
|
while (TRUE)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -779,10 +779,18 @@ static void stroke_initiate(stroke_msg_t *msg, FILE *out)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
info.out = out;
|
if (msg->output_verbosity < 0)
|
||||||
info.level = msg->output_verbosity;
|
{
|
||||||
charon->interfaces->initiate(charon->interfaces, peer_cfg, child_cfg,
|
charon->interfaces->initiate(charon->interfaces, peer_cfg, child_cfg,
|
||||||
(interface_manager_cb_t)stroke_log, &info);
|
NULL, NULL);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
info.out = out;
|
||||||
|
info.level = msg->output_verbosity;
|
||||||
|
charon->interfaces->initiate(charon->interfaces, peer_cfg, child_cfg,
|
||||||
|
(interface_manager_cb_t)stroke_log, &info);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user