From: Martin Willi Date: Tue, 3 Jan 2012 10:27:41 +0000 (+0100) Subject: Set a condition flag if peer has been authenticated using XAuth X-Git-Tag: 5.0.0~338^2~9^2~101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2da3ff7a5235cd86146a02e0a57f63a1a2b8e3e8;p=thirdparty%2Fstrongswan.git Set a condition flag if peer has been authenticated using XAuth --- diff --git a/src/libcharon/sa/ike_sa.h b/src/libcharon/sa/ike_sa.h index c5bf60b5d6..b7c96fdfb9 100644 --- a/src/libcharon/sa/ike_sa.h +++ b/src/libcharon/sa/ike_sa.h @@ -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), }; /** diff --git a/src/libcharon/sa/ikev1/tasks/xauth.c b/src/libcharon/sa/ikev1/tasks/xauth.c index 20d6d8a171..7e7e84a8ea 100755 --- a/src/libcharon/sa/ikev1/tasks/xauth.c +++ b/src/libcharon/sa/ikev1/tasks/xauth.c @@ -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; }