diff options
author | Martin Willi <martin@revosec.ch> | 2011-11-17 18:01:41 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-03-20 17:30:43 +0100 |
commit | 04ee2b7fed91b4430ba4870a2f1b98ee3e228f50 (patch) | |
tree | 6b2f395dc73a9289d4dd246cdd18adeceaac07e0 /src/libcharon/sa/tasks/child_rekey.c | |
parent | 043ed1b346fcc2130be8ff8a5a3bd503dfb1ac22 (diff) | |
download | strongswan-04ee2b7fed91b4430ba4870a2f1b98ee3e228f50.tar.bz2 strongswan-04ee2b7fed91b4430ba4870a2f1b98ee3e228f50.tar.xz |
Added IKEv1 support to notify payload
Diffstat (limited to 'src/libcharon/sa/tasks/child_rekey.c')
-rw-r--r-- | src/libcharon/sa/tasks/child_rekey.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcharon/sa/tasks/child_rekey.c b/src/libcharon/sa/tasks/child_rekey.c index 76d185590..bcdf093b8 100644 --- a/src/libcharon/sa/tasks/child_rekey.c +++ b/src/libcharon/sa/tasks/child_rekey.c @@ -153,8 +153,8 @@ METHOD(task_t, build_i, status_t, config = this->child_sa->get_config(this->child_sa); /* we just need the rekey notify ... */ - notify = notify_payload_create_from_protocol_and_type(this->protocol, - REKEY_SA); + notify = notify_payload_create_from_protocol_and_type(NOTIFY, + this->protocol, REKEY_SA); notify->set_spi(notify, this->spi); message->add_payload(message, (payload_t*)notify); @@ -462,7 +462,7 @@ child_rekey_t *child_rekey_create(ike_sa_t *ike_sa, protocol_id_t protocol, .protocol = protocol, .spi = spi, ); - + if (protocol != PROTO_NONE) { this->public.task.build = _build_i; |