]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Raise an alert if IKE SA is kept
authorAdrian-Ken Rueegsegger <ken@codelabs.ch>
Wed, 19 Dec 2012 14:48:35 +0000 (15:48 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 20 Dec 2012 08:15:07 +0000 (09:15 +0100)
This alert is raised when the establishment of a child SA fails but the
IKE SA is kept.

src/libcharon/bus/bus.h
src/libcharon/sa/ikev2/tasks/child_create.c

index 34b9bc3fea296ef496fae1821470a9c3a68d52f8..105375ae4863430518e86667f9368d0919d50e13 100644 (file)
@@ -124,6 +124,8 @@ enum alert_t {
        ALERT_UNIQUE_REPLACE,
        /** IKE_SA deleted because of "keep" unique policy, no arguement */
        ALERT_UNIQUE_KEEP,
+       /** IKE_SA kept on failed child SA establishment, no argument */
+       ALERT_KEEP_ON_CHILD_SA_FAILURE,
        /** allocating virtual IP failed, linked_list_t of host_t requested */
        ALERT_VIP_FAILURE,
        /** an authorize() hook failed, no argument */
index c59b4d646f7eb1fba5ac0381aa9c6558250a2e55..787c51eb28d2eb25731ec7ed455edab4908a011b 100644 (file)
@@ -989,6 +989,7 @@ static void handle_child_sa_failure(private_child_create_t *this,
        else
        {
                DBG1(DBG_IKE, "failed to establish CHILD_SA, keeping IKE_SA");
+               charon->bus->alert(charon->bus, ALERT_KEEP_ON_CHILD_SA_FAILURE);
        }
 }