*/
time_t install_time;
+ /**
+ * absolute time when rekeying is sceduled
+ */
+ time_t rekey_time;
+
/**
* state of the CHILD_SA
*/
this->encryption = *enc_algo;
this->integrity = *int_algo;
this->install_time = time(NULL);
+ this->rekey_time = soft;
return status;
}
private_child_sa_t *this = *((private_child_sa_t**)(args[0]));
iterator_t *iterator;
sa_policy_t *policy;
- u_int32_t now, rekeying, soft;
+ u_int32_t now, rekeying;
u_int32_t use, use_in, use_fwd;
status_t status;
size_t written = 0;
}
written += fprintf(stream, ", rekeying ");
- soft = this->policy->get_soft_lifetime(this->policy);
/* calculate rekey times */
- if (soft)
+ if (this->rekey_time)
{
- rekeying = this->install_time + soft - now;
+ rekeying = this->install_time + this->rekey_time - now;
written += fprintf(stream, "in %ds", rekeying);
}
else