android: Report error if CHILD_SA rekeying fails
authorTobias Brunner <tobias@strongswan.org>
Mon, 11 Aug 2014 14:09:35 +0000 (16:09 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 12 Sep 2014 08:18:13 +0000 (10:18 +0200)
src/frontends/android/jni/libandroidbridge/backend/android_service.c

index e60c491..b2852e5 100644 (file)
@@ -484,6 +484,12 @@ METHOD(listener_t, alert, bool,
                                charonservice->update_status(charonservice,
                                                                                         CHARONSERVICE_PEER_AUTH_ERROR);
                                break;
+                       case ALERT_KEEP_ON_CHILD_SA_FAILURE:
+                               /* because close_ike_on_child_failure is set this is only
+                                * triggered when CHILD_SA rekeying failed */
+                               charonservice->update_status(charonservice,
+                                                                                        CHARONSERVICE_GENERIC_ERROR);
+                               break;
                        case ALERT_PEER_INIT_UNREACHABLE:
                                this->lock->read_lock(this->lock);
                                if (this->tunfd < 0)