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
+10 -1
View File
@@ -80,8 +80,17 @@ struct settings_t {
* @param def default value to return if key not found
* @return value of the key
*/
int (*get_int)(settings_t *this, char *key, bool def);
int (*get_int)(settings_t *this, char *key, int def);
/**
* Get a time value.
*
* @param key key including sections
* @param def default value to return if key not found
* @return value of the key
*/
u_int32_t (*get_time)(settings_t *this, char *key, u_int32_t def);
/**
* Destroy a settings instance.
*/