aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa/ike_sa_manager.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2011-01-05 16:44:01 +0100
committerMartin Willi <martin@revosec.ch>2011-01-05 16:46:08 +0100
commit6f5892f5c7c58b7124fda4a4c2abac81dbea6060 (patch)
tree80f3952af75f6579cd30be3dfab7cb865491929e /src/libcharon/sa/ike_sa_manager.h
parenta4a1e24d37e33cf86ea2edba97fbeeaa465d2ffd (diff)
downloadstrongswan-6f5892f5c7c58b7124fda4a4c2abac81dbea6060.tar.bz2
strongswan-6f5892f5c7c58b7124fda4a4c2abac81dbea6060.tar.xz
Destroy existing IKE_SAs with same identities when receiving INITIAL_CONTACT
Diffstat (limited to 'src/libcharon/sa/ike_sa_manager.h')
-rw-r--r--src/libcharon/sa/ike_sa_manager.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcharon/sa/ike_sa_manager.h b/src/libcharon/sa/ike_sa_manager.h
index a9dbca6b0..ec157ab3a 100644
--- a/src/libcharon/sa/ike_sa_manager.h
+++ b/src/libcharon/sa/ike_sa_manager.h
@@ -106,10 +106,12 @@ struct ike_sa_manager_t {
* deadlocks occur otherwise.
*
* @param ike_sa ike_sa to check
+ * @param force_replace replace existing SAs, regardless of unique policy
* @return TRUE, if the given IKE_SA has duplicates and
* should be deleted
*/
- bool (*check_uniqueness)(ike_sa_manager_t *this, ike_sa_t *ike_sa);
+ bool (*check_uniqueness)(ike_sa_manager_t *this, ike_sa_t *ike_sa,
+ bool force_replace);
/**
* Check if we already have a connected IKE_SA between two identities.