Set a condition flag if peer has been authenticated using XAuth

This commit is contained in:
Martin Willi
2012-03-20 17:31:32 +01:00
parent 54773729a8
commit 2da3ff7a52
2 changed files with 6 additions and 0 deletions
+5
View 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),
};
/**
+1
View File
@@ -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;
}