diff options
author | Tobias Brunner <tobias@strongswan.org> | 2017-05-10 19:04:25 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2017-05-23 16:51:15 +0200 |
commit | 749ac175fa9052a360c6393c93efbca8d5cc7621 (patch) | |
tree | 24e9805fe6015ba9ced8b43309539d432285756d /src/libcharon/sa/ikev2/tasks/child_create.c | |
parent | d42948fc057e25624c547649425b19ae4ebfa1e4 (diff) | |
download | strongswan-749ac175fa9052a360c6393c93efbca8d5cc7621.tar.bz2 strongswan-749ac175fa9052a360c6393c93efbca8d5cc7621.tar.xz |
child-cfg: Use flags for boolean options
Makes it potentially easier to add new flags.
Diffstat (limited to 'src/libcharon/sa/ikev2/tasks/child_create.c')
-rw-r--r-- | src/libcharon/sa/ikev2/tasks/child_create.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcharon/sa/ikev2/tasks/child_create.c b/src/libcharon/sa/ikev2/tasks/child_create.c index 71cb6b8ea..7180bfd13 100644 --- a/src/libcharon/sa/ikev2/tasks/child_create.c +++ b/src/libcharon/sa/ikev2/tasks/child_create.c @@ -602,7 +602,7 @@ static status_t select_and_install(private_child_create_t *this, switch (this->mode) { case MODE_TRANSPORT: - if (!this->config->use_proxy_mode(this->config) && + if (!this->config->has_option(this->config, OPT_PROXY_MODE) && (!ts_list_is_host(this->tsi, other) || !ts_list_is_host(this->tsr, me)) ) @@ -1073,7 +1073,7 @@ METHOD(task_t, build_i, status_t, this->dh_group); } - if (this->config->use_ipcomp(this->config)) + if (this->config->has_option(this->config, OPT_IPCOMP)) { /* IPCOMP_DEFLATE is the only transform we support at the moment */ add_ipcomp_notify(this, message, IPCOMP_DEFLATE); @@ -1327,7 +1327,7 @@ METHOD(task_t, build_r, status_t, if (this->ipcomp_received != IPCOMP_NONE) { - if (this->config->use_ipcomp(this->config)) + if (this->config->has_option(this->config, OPT_IPCOMP)) { add_ipcomp_notify(this, message, this->ipcomp_received); } |