Set a condition flag if peer has been authenticated using XAuth
authorMartin Willi <martin@revosec.ch>
Tue, 3 Jan 2012 10:27:41 +0000 (11:27 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:31:32 +0000 (17:31 +0100)
src/libcharon/sa/ike_sa.h
src/libcharon/sa/ikev1/tasks/xauth.c

index c5bf60b..b7c96fd 100644 (file)
@@ -159,6 +159,11 @@ enum ike_condition_t {
         * Initial contact received
         */
        COND_INIT_CONTACT_SEEN = (1<<8),
+
+       /**
+        * Peer has been authenticated using XAuth
+        */
+       COND_XAUTH_AUTHENTICATED = (1<<9),
 };
 
 /**
index 20d6d8a..7e7e84a 100755 (executable)
@@ -310,6 +310,7 @@ METHOD(task_t, process_i_status, status_t,
                return FAILED;
        }
        establish(this);
+       this->ike_sa->set_condition(this->ike_sa, COND_XAUTH_AUTHENTICATED, TRUE);
        return SUCCESS;
 }