aboutsummaryrefslogtreecommitdiffstats
path: root/src/manager/gateway.h
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2007-11-13 11:58:28 +0000
committerMartin Willi <martin@strongswan.org>2007-11-13 11:58:28 +0000
commite8287a405e9a25fdcad29c754db2bce25a8ca5ea (patch)
tree7a5df3d75bf8aa846eb86d54dbbd0d8a483f570b /src/manager/gateway.h
parent30a68d715b768751d15b9d72ed94c39a307bb1bd (diff)
downloadstrongswan-e8287a405e9a25fdcad29c754db2bce25a8ca5ea.tar.bz2
strongswan-e8287a405e9a25fdcad29c754db2bce25a8ca5ea.tar.xz
implemented IKE_SA initiation in manager
Diffstat (limited to 'src/manager/gateway.h')
-rw-r--r--src/manager/gateway.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/manager/gateway.h b/src/manager/gateway.h
index 54dab8648..81d8b9c3f 100644
--- a/src/manager/gateway.h
+++ b/src/manager/gateway.h
@@ -59,9 +59,19 @@ struct gateway_t {
* @brief Terminate an IKE or a CHILD SA.
*
* @param ike TRUE for IKE-, FALSE for a CHILD-SA
- * @return TRUE if successful
+ * @param id ID of the SA to terminate
+ * @return enumerator over control response XML children
*/
- bool (*terminate)(gateway_t *this, bool ike, u_int32_t id);
+ enumerator_t* (*terminate)(gateway_t *this, bool ike, u_int32_t id);
+
+ /**
+ * @brief Initiate an IKE or a CHILD SA.
+ *
+ * @param ike TRUE for IKE-, FALSE for CHILD-SA
+ * @param name name of the peer/child config
+ * @return enumerator over control response XML children
+ */
+ enumerator_t* (*initiate)(gateway_t *this, bool ike, char *name);
/**
* @brief Destroy a gateway instance.