u_int32_t hard_lifetime;
/**
- * reqid of a CHILD_SA which rekeyed this one
+ * has this CHILD_SA been rekeyed?
*/
- u_int32_t rekeyed;
+ bool rekeyed;
/**
* CHILD_SAs own logger
/**
* Implementation of child_sa_t.set_rekeyed.
*/
-static void set_rekeyed(private_child_sa_t *this, u_int32_t reqid)
+static void set_rekeyed(private_child_sa_t *this)
{
- this->rekeyed = reqid;
+ this->rekeyed = TRUE;
}
/**
this->public.add = (status_t(*)(child_sa_t*,proposal_t*,prf_plus_t*))add;
this->public.update = (status_t(*)(child_sa_t*,proposal_t*,prf_plus_t*))update;
this->public.add_policies = (status_t (*)(child_sa_t*, linked_list_t*,linked_list_t*))add_policies;
- this->public.set_rekeyed = (void (*)(child_sa_t*,u_int32_t))set_rekeyed;
+ this->public.set_rekeyed = (void (*)(child_sa_t*))set_rekeyed;
this->public.log_status = (void (*)(child_sa_t*, logger_t*, char*))log_status;
this->public.destroy = (void(*)(child_sa_t*))destroy;
this->reqid = rekey ? rekey : ++reqid;
this->policies = linked_list_create();
this->protocol = PROTO_NONE;
- this->rekeyed = 0;
+ this->rekeyed = FALSE;
return (&this->public);
}