diff options
author | Martin Willi <martin@strongswan.org> | 2007-05-23 09:08:13 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2007-05-23 09:08:13 +0000 |
commit | 76042f8471888b89fd0734ad85c1b22672029e8c (patch) | |
tree | 64bff317df24ac44c451ce598496e629fc00b630 /src/charon/control/interface_manager.h | |
parent | 0f6b06825921ea6dcffa5df24b5a3c2066955d32 (diff) | |
download | strongswan-76042f8471888b89fd0734ad85c1b22672029e8c.tar.bz2 strongswan-76042f8471888b89fd0734ad85c1b22672029e8c.tar.xz |
proper thread cancellation when using the charon->interfaces
Diffstat (limited to 'src/charon/control/interface_manager.h')
-rw-r--r-- | src/charon/control/interface_manager.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/charon/control/interface_manager.h b/src/charon/control/interface_manager.h index 3c1613a91..06a5fe6c4 100644 --- a/src/charon/control/interface_manager.h +++ b/src/charon/control/interface_manager.h @@ -84,6 +84,10 @@ struct interface_manager_t { /** * @brief Initiate a CHILD_SA, and if required, an IKE_SA. * + * The inititate() function is synchronous and thus blocks until the + * IKE_SA is established or failed. Because of this, the initiate() function + * contains a thread cancellation point. + * * @param this calling object * @param peer_cfg peer_cfg to use for IKE_SA setup * @param child_cfg child_cfg to set up CHILD_SA from @@ -101,6 +105,10 @@ struct interface_manager_t { /** * @brief Terminate an IKE_SA and all of its CHILD_SAs. * + * The terminate() function is synchronous and thus blocks until the + * IKE_SA is properly deleted, or the delete timed out. + * The terminate() function contains a thread cancellation point. + * * @param this calling object * @param unique_id unique id of the IKE_SA to terminate. * @param cb logging callback |