splitted IKE_SA manager destroy to allow plugin interaction

This commit is contained in:
Martin Willi
2008-04-17 10:46:25 +00:00
parent e5617e40d1
commit 46a5604a04
3 changed files with 28 additions and 5 deletions
+8 -1
View File
@@ -199,10 +199,17 @@ struct ike_sa_manager_t {
int (*get_half_open_count) (ike_sa_manager_t *this, host_t *ip);
/**
* Destroys the manager with all associated SAs.
* Delete all existing IKE_SAs and destroy them immediately.
*
* Threads will be driven out, so all SAs can be deleted cleanly.
*/
void (*flush)(ike_sa_manager_t *this);
/**
* Destroys the manager with all associated SAs.
*
* A call to flush() is required before calling destroy.
*/
void (*destroy) (ike_sa_manager_t *this);
};