Store Main Mode identity even if XAuth-only is used for authentication

This commit is contained in:
Martin Willi
2012-03-20 17:31:23 +01:00
parent f5e5c5edbd
commit 10a6a5acff
+4 -4
View File
@@ -362,14 +362,14 @@ static bool check_constraints(private_main_mode_t *this)
identification_t *id;
auth_cfg_t *auth;
if (skipped_auth(this, FALSE))
{
return TRUE;
}
auth = this->ike_sa->get_auth_cfg(this->ike_sa, FALSE);
/* auth identity to comply */
id = this->ike_sa->get_other_id(this->ike_sa);
auth->add(auth, AUTH_RULE_IDENTITY, id->clone(id));
if (skipped_auth(this, FALSE))
{
return TRUE;
}
return auth->complies(auth, this->other_auth, TRUE);
}