controller: Add option to force destruction of an IKE_SA
[strongswan.git] / src / libcharon / plugins / uci / uci_control.c
index cebc389..22fd3c2 100644 (file)
@@ -147,7 +147,7 @@ static void initiate(private_uci_control_t *this, char *name)
                if (enumerator->enumerate(enumerator, &child_cfg) &&
                        charon->controller->initiate(charon->controller, peer_cfg,
                                                                child_cfg->get_ref(child_cfg),
-                                                               controller_cb_empty, NULL, 0) == SUCCESS)
+                                                               controller_cb_empty, NULL, 0, FALSE) == SUCCESS)
                {
                        write_fifo(this, "connection '%s' established\n", name);
                }
@@ -180,7 +180,7 @@ static void terminate(private_uci_control_t *this, char *name)
                {
                        id = ike_sa->get_unique_id(ike_sa);
                        enumerator->destroy(enumerator);
-                       charon->controller->terminate_ike(charon->controller, id,
+                       charon->controller->terminate_ike(charon->controller, id, FALSE,
                                                                                          controller_cb_empty, NULL, 0);
                        write_fifo(this, "connection '%s' terminated\n", name);
                        return;