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/ikev1/tasks/quick_mode.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/ikev1/tasks/quick_mode.c')
-rw-r--r-- | src/libcharon/sa/ikev1/tasks/quick_mode.c | 4 |
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); |