aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-09-25 09:31:47 +0200
committerTobias Brunner <tobias@strongswan.org>2012-09-25 09:31:47 +0200
commit2d39f79b9bd935784fd99c90044569d5ed5ed961 (patch)
treee8e65bb8e61ba50a221cefe209498e5ee587db45 /src
parent012d7382b08936bd8e54c0db0df5cce2d7213504 (diff)
downloadstrongswan-2d39f79b9bd935784fd99c90044569d5ed5ed961.tar.bz2
strongswan-2d39f79b9bd935784fd99c90044569d5ed5ed961.tar.xz
IKE_AUTH_LIFETIME task is not defined if IKEv2 is disabled
Fixes #229.
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/sa/ike_sa.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libcharon/sa/ike_sa.c b/src/libcharon/sa/ike_sa.c
index 453a50c41..1d49acb52 100644
--- a/src/libcharon/sa/ike_sa.c
+++ b/src/libcharon/sa/ike_sa.c
@@ -1732,7 +1732,6 @@ METHOD(ike_sa_t, set_auth_lifetime, status_t,
private_ike_sa_t *this, u_int32_t lifetime)
{
u_int32_t diff, hard, soft, now;
- ike_auth_lifetime_t *task;
bool send_update;
diff = this->peer_cfg->get_over_time(this->peer_cfg);
@@ -1782,12 +1781,16 @@ METHOD(ike_sa_t, set_auth_lifetime, status_t,
/* give at least some seconds to reauthenticate */
this->stats[STAT_DELETE] = max(hard, now + 10);
+#ifdef USE_IKEV2
if (send_update)
{
+ ike_auth_lifetime_t *task;
+
task = ike_auth_lifetime_create(&this->public, TRUE);
this->task_manager->queue_task(this->task_manager, &task->task);
return this->task_manager->initiate(this->task_manager);
}
+#endif
return SUCCESS;
}