Use XAuth/EAP remote identity for uniqueness check

This commit is contained in:
Martin Willi
2012-06-25 10:18:34 +02:00
parent de5e8fb4e0
commit 0fbfcf2a3a
3 changed files with 6 additions and 4 deletions
+2 -2
View File
@@ -1441,7 +1441,7 @@ METHOD(ike_sa_manager_t, checkin, void,
ike_sa_id = ike_sa->get_id(ike_sa);
my_id = ike_sa->get_my_id(ike_sa);
other_id = ike_sa->get_other_id(ike_sa);
other_id = ike_sa->get_other_eap_id(ike_sa);
other = ike_sa->get_other_host(ike_sa);
DBG2(DBG_MGR, "checkin IKE_SA %s[%u]", ike_sa->get_name(ike_sa),
@@ -1653,7 +1653,7 @@ METHOD(ike_sa_manager_t, check_uniqueness, bool,
return FALSE;
}
me = ike_sa->get_my_id(ike_sa);
other = ike_sa->get_other_id(ike_sa);
other = ike_sa->get_other_eap_id(ike_sa);
other_host = ike_sa->get_other_host(ike_sa);
enumerator = create_id_enumerator(this, me, other,
+2
View File
@@ -172,6 +172,8 @@ struct ike_sa_manager_t {
/**
* Create an enumerator over ike_sa_id_t*, matching peer identities.
*
* The remote peer is identified by its XAuth or EAP identity, if available.
*
* @param me local peer identity to match
* @param other remote peer identity to match
* @param family address family to match, 0 for any