aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon-cmd/cmd/cmd_connection.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2016-04-04 16:09:23 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2016-04-09 16:51:01 +0200
commit8a00a8452ddb36ec07038242c029a214b0417ae8 (patch)
tree27dc50623f6bdc7013c665763d693ca4736261fa /src/charon-cmd/cmd/cmd_connection.c
parentfd8f1194f3f14ff94c02e2218dd01b3aaf14c414 (diff)
downloadstrongswan-8a00a8452ddb36ec07038242c029a214b0417ae8.tar.bz2
strongswan-8a00a8452ddb36ec07038242c029a214b0417ae8.tar.xz
child-cfg: Use struct to pass data to constructor
Diffstat (limited to 'src/charon-cmd/cmd/cmd_connection.c')
-rw-r--r--src/charon-cmd/cmd/cmd_connection.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/charon-cmd/cmd/cmd_connection.c b/src/charon-cmd/cmd/cmd_connection.c
index 23e2b09fa..48e7dd309 100644
--- a/src/charon-cmd/cmd/cmd_connection.c
+++ b/src/charon-cmd/cmd/cmd_connection.c
@@ -335,18 +335,18 @@ static child_cfg_t* create_child_cfg(private_cmd_connection_t *this,
traffic_selector_t *ts;
proposal_t *proposal;
bool has_v4 = FALSE, has_v6 = FALSE;
- lifetime_cfg_t lifetime = {
- .time = {
- .life = 10800 /* 3h */,
- .rekey = 10200 /* 2h50min */,
- .jitter = 300 /* 5min */
- }
+ child_cfg_create_t child = {
+ .lifetime = {
+ .time = {
+ .life = 10800 /* 3h */,
+ .rekey = 10200 /* 2h50min */,
+ .jitter = 300 /* 5min */
+ }
+ },
+ .mode = MODE_TUNNEL,
};
- child_cfg = child_cfg_create("cmd", &lifetime,
- NULL, FALSE, MODE_TUNNEL, /* updown, hostaccess */
- ACTION_NONE, ACTION_NONE, ACTION_NONE, FALSE,
- 0, 0, NULL, NULL, 0);
+ child_cfg = child_cfg_create("cmd", &child);
if (this->child_proposals->get_count(this->child_proposals))
{
while (this->child_proposals->remove_first(this->child_proposals,