time values in strongswan.conf can be optionally specified in days (d), hours (h), minutes (m), or seconds (s)

This commit is contained in:
Andreas Steffen
2008-09-04 16:19:46 +00:00
parent e376d75f96
commit 07d7f9a402
7 changed files with 57 additions and 13 deletions
+1 -1
View File
@@ -2621,7 +2621,7 @@ ike_sa_t * ike_sa_create(ike_sa_id_t *ike_sa_id)
this->skp_build = chunk_empty;
this->child_prf = NULL;
this->state = IKE_CREATED;
this->keepalive_interval = lib->settings->get_int(lib->settings,
this->keepalive_interval = lib->settings->get_time(lib->settings,
"charon.keep_alive", KEEPALIVE_INTERVAL);
this->time.inbound = this->time.outbound = time(NULL);
this->time.established = 0;