Send INITIAL_CONTACT for the first IKE_SA if it has a unique policy

This commit is contained in:
Martin Willi
2011-01-05 16:46:08 +01:00
parent 240bd7dbb7
commit a4a1e24d37
3 changed files with 66 additions and 16 deletions
+11
View File
@@ -111,6 +111,17 @@ struct ike_sa_manager_t {
*/
bool (*check_uniqueness)(ike_sa_manager_t *this, ike_sa_t *ike_sa);
/**
* Check if we already have a connected IKE_SA between two identities.
*
* @param me own identity
* @param other remote identity
* @param family address family to include in uniqueness check
* @return TRUE if we have a connected IKE_SA
*/
bool (*has_contact)(ike_sa_manager_t *this, identification_t *me,
identification_t *other, int family);
/**
* Check out an IKE_SA a unique ID.
*