controller: Add option to force destruction of an IKE_SA
[strongswan.git] / src / libcharon / plugins / stroke / stroke_control.c
index d3c2791..016f0e7 100644 (file)
@@ -316,7 +316,8 @@ static void charon_terminate(private_stroke_control_t *this, uint32_t id,
                else
                {
                        status = charon->controller->terminate_ike(charon->controller, id,
-                                                       (controller_cb_t)stroke_log, &info, this->timeout);
+                                                       FALSE, (controller_cb_t)stroke_log, &info,
+                                                       this->timeout);
                }
                report_terminate_status(this, status, out, id, child);
        }
@@ -327,7 +328,7 @@ static void charon_terminate(private_stroke_control_t *this, uint32_t id,
        }
        else
        {
-               charon->controller->terminate_ike(charon->controller, id,
+               charon->controller->terminate_ike(charon->controller, id, FALSE,
                                                                                  NULL, NULL, 0);
        }
 }