aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/sa/ikev1/tasks/quick_mode.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2017-05-10 19:04:25 +0200
committerTobias Brunner <tobias@strongswan.org>2017-05-23 16:51:15 +0200
commit749ac175fa9052a360c6393c93efbca8d5cc7621 (patch)
tree24e9805fe6015ba9ced8b43309539d432285756d /src/libcharon/sa/ikev1/tasks/quick_mode.c
parentd42948fc057e25624c547649425b19ae4ebfa1e4 (diff)
downloadstrongswan-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/ikev1/tasks/quick_mode.c')
-rw-r--r--src/libcharon/sa/ikev1/tasks/quick_mode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcharon/sa/ikev1/tasks/quick_mode.c b/src/libcharon/sa/ikev1/tasks/quick_mode.c
index bbb885850..d65db2875 100644
--- a/src/libcharon/sa/ikev1/tasks/quick_mode.c
+++ b/src/libcharon/sa/ikev1/tasks/quick_mode.c
@@ -853,7 +853,7 @@ METHOD(task_t, build_i, status_t,
add_nat_oa_payloads(this, message);
}
- if (this->config->use_ipcomp(this->config))
+ if (this->config->has_option(this->config, OPT_IPCOMP))
{
this->cpi_i = this->child_sa->alloc_cpi(this->child_sa);
if (!this->cpi_i)
@@ -1108,7 +1108,7 @@ METHOD(task_t, process_r, status_t,
return send_notify(this, INVALID_ID_INFORMATION);
}
- if (this->config->use_ipcomp(this->config))
+ if (this->config->has_option(this->config, OPT_IPCOMP))
{
list = sa_payload->get_ipcomp_proposals(sa_payload,
&this->cpi_i);