Merge auth config items added from XAuth backends to IKE_SA

This commit is contained in:
Martin Willi 2012-07-26 12:07:48 +02:00
parent 46df61dff7
commit 9191946a63
1 changed files with 1 additions and 0 deletions

View File

@ -190,6 +190,7 @@ static void add_auth_cfg(private_xauth_t *this, identification_t *id, bool local
auth = auth_cfg_create();
auth->add(auth, AUTH_RULE_AUTH_CLASS, AUTH_CLASS_XAUTH);
auth->add(auth, AUTH_RULE_XAUTH_IDENTITY, id->clone(id));
auth->merge(auth, this->ike_sa->get_auth_cfg(this->ike_sa, local), FALSE);
this->ike_sa->add_auth_cfg(this->ike_sa, local, auth);
}