diff options
author | Tobias Brunner <tobias@strongswan.org> | 2009-08-27 11:38:13 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2009-09-01 12:50:50 +0200 |
commit | e0a8a8c3ec541f91cede286d0580501dee5206d4 (patch) | |
tree | 987caeaf540924f74fdd1c7656239cd4738f76d5 /src/charon/plugins/sql/sql_config.c | |
parent | caf87c7dcb74b728616d52de9b24328a25c67342 (diff) | |
download | strongswan-e0a8a8c3ec541f91cede286d0580501dee5206d4.tar.bz2 strongswan-e0a8a8c3ec541f91cede286d0580501dee5206d4.tar.xz |
Adapted the config backends to the new lifetime configuration.
Diffstat (limited to 'src/charon/plugins/sql/sql_config.c')
-rw-r--r-- | src/charon/plugins/sql/sql_config.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/charon/plugins/sql/sql_config.c b/src/charon/plugins/sql/sql_config.c index e7dfe573b..71fb378df 100644 --- a/src/charon/plugins/sql/sql_config.c +++ b/src/charon/plugins/sql/sql_config.c @@ -130,8 +130,10 @@ static child_cfg_t *build_child_cfg(private_sql_config_t *this, enumerator_t *e) if (e->enumerate(e, &id, &name, &lifetime, &rekeytime, &jitter, &updown, &hostaccess, &mode, &dpd, &close, &ipcomp)) { - child_cfg = child_cfg_create(name, lifetime, rekeytime, jitter, - updown, hostaccess, mode, dpd, close, ipcomp); + lifetime_cfg_t *lft = lifetime_cfg_create_time(lifetime, rekeytime, + jitter); + child_cfg = child_cfg_create(name, lft, updown, hostaccess, mode, + dpd, close, ipcomp); /* TODO: read proposal from db */ child_cfg->add_proposal(child_cfg, proposal_create_default(PROTO_ESP)); add_traffic_selectors(this, child_cfg, id); |