time values in strongswan.conf can be optionally specified in days (d), hours (h), minutes (m), or seconds (s)
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user