aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/plugins/load_tester/load_tester_config.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2009-08-27 11:38:13 +0200
committerTobias Brunner <tobias@strongswan.org>2009-09-01 12:50:50 +0200
commite0a8a8c3ec541f91cede286d0580501dee5206d4 (patch)
tree987caeaf540924f74fdd1c7656239cd4738f76d5 /src/charon/plugins/load_tester/load_tester_config.c
parentcaf87c7dcb74b728616d52de9b24328a25c67342 (diff)
downloadstrongswan-e0a8a8c3ec541f91cede286d0580501dee5206d4.tar.bz2
strongswan-e0a8a8c3ec541f91cede286d0580501dee5206d4.tar.xz
Adapted the config backends to the new lifetime configuration.
Diffstat (limited to 'src/charon/plugins/load_tester/load_tester_config.c')
-rw-r--r--src/charon/plugins/load_tester/load_tester_config.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/charon/plugins/load_tester/load_tester_config.c b/src/charon/plugins/load_tester/load_tester_config.c
index 963f7cc01..537301c1d 100644
--- a/src/charon/plugins/load_tester/load_tester_config.c
+++ b/src/charon/plugins/load_tester/load_tester_config.c
@@ -178,6 +178,7 @@ static peer_cfg_t* generate_config(private_load_tester_config_t *this, uint num)
{
ike_cfg_t *ike_cfg;
child_cfg_t *child_cfg;
+ lifetime_cfg_t *lifetime;
peer_cfg_t *peer_cfg;
traffic_selector_t *ts;
proposal_t *proposal;
@@ -201,8 +202,11 @@ static peer_cfg_t* generate_config(private_load_tester_config_t *this, uint num)
generate_auth_cfg(this, this->responder_auth, peer_cfg, TRUE, num);
generate_auth_cfg(this, this->initiator_auth, peer_cfg, FALSE, num);
}
- child_cfg = child_cfg_create("load-test", this->child_rekey * 2,
- this->child_rekey, 0, NULL, TRUE,
+
+ lifetime = lifetime_cfg_create_time(this->child_rekey * 2,
+ this->child_rekey, 0);
+
+ child_cfg = child_cfg_create("load-test", lifetime, NULL, TRUE,
MODE_TUNNEL, ACTION_NONE, ACTION_NONE, FALSE);
proposal = proposal_create_from_string(PROTO_ESP, "aes128-sha1");
child_cfg->add_proposal(child_cfg, proposal);