Use XAuth/EAP remote identity for uniqueness check
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user