ikev2: Add inherit_pre() to apply config and hosts before IKE_SA rekeying

This commit is contained in:
Martin Willi
2014-04-17 09:24:51 +02:00
parent c4c9d291d2
commit 713a1122b4
4 changed files with 30 additions and 22 deletions
+11 -1
View File
@@ -1019,6 +1019,16 @@ struct ike_sa_t {
*/
void (*queue_task)(ike_sa_t *this, task_t *task);
/**
* Inherit required attributes to new SA before rekeying.
*
* Some properties of the SA must be applied before starting IKE_SA
* rekeying, such as the configuration or support extensions.
*
* @param other other IKE_SA to inherit from
*/
void (*inherit_pre)(ike_sa_t *this, ike_sa_t *other);
/**
* Inherit all attributes of other to this after rekeying.
*
@@ -1027,7 +1037,7 @@ struct ike_sa_t {
*
* @param other other IKE SA to inherit from
*/
void (*inherit) (ike_sa_t *this, ike_sa_t *other);
void (*inherit_post) (ike_sa_t *this, ike_sa_t *other);
/**
* Reset the IKE_SA, useable when initiating fails