controller: Add option to force destruction of an IKE_SA
It's optionally possible to wait for a timeout to destroy the SA.
This commit is contained in:
@@ -2083,7 +2083,7 @@ static void clear_start_action(private_vici_config_t *this, char *peer_name,
|
||||
while (array_remove(ikeids, ARRAY_HEAD, &id))
|
||||
{
|
||||
DBG1(DBG_CFG, "closing IKE_SA #%u", id);
|
||||
charon->controller->terminate_ike(charon->controller,
|
||||
charon->controller->terminate_ike(charon->controller, FALSE,
|
||||
id, NULL, NULL, 0);
|
||||
}
|
||||
array_destroy(ikeids);
|
||||
|
||||
@@ -326,7 +326,7 @@ CALLBACK(terminate, vici_message_t*,
|
||||
}
|
||||
else
|
||||
{
|
||||
if (charon->controller->terminate_ike(charon->controller, *del,
|
||||
if (charon->controller->terminate_ike(charon->controller, *del, FALSE,
|
||||
log_cb, &log, timeout) == SUCCESS)
|
||||
{
|
||||
done++;
|
||||
|
||||
Reference in New Issue
Block a user