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/conftest/hooks | |
parent | 043ed1b346fcc2130be8ff8a5a3bd503dfb1ac22 (diff) | |
download | strongswan-04ee2b7fed91b4430ba4870a2f1b98ee3e228f50.tar.bz2 strongswan-04ee2b7fed91b4430ba4870a2f1b98ee3e228f50.tar.xz |
Added IKEv1 support to notify payload
Diffstat (limited to 'src/conftest/hooks')
-rw-r--r-- | src/conftest/hooks/add_notify.c | 2 | ||||
-rw-r--r-- | src/conftest/hooks/unencrypted_notify.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/conftest/hooks/add_notify.c b/src/conftest/hooks/add_notify.c index de46ca81f..a9731960b 100644 --- a/src/conftest/hooks/add_notify.c +++ b/src/conftest/hooks/add_notify.c @@ -89,7 +89,7 @@ METHOD(listener_t, message, bool, { data = chunk_clone(chunk_create(this->data, strlen(this->data))); } - notify = notify_payload_create_from_protocol_and_type( + notify = notify_payload_create_from_protocol_and_type(NOTIFY, this->esp ? PROTO_ESP : PROTO_IKE, type); notify->set_spi(notify, this->spi); if (data.len) diff --git a/src/conftest/hooks/unencrypted_notify.c b/src/conftest/hooks/unencrypted_notify.c index 507f30cae..958e33e98 100644 --- a/src/conftest/hooks/unencrypted_notify.c +++ b/src/conftest/hooks/unencrypted_notify.c @@ -84,7 +84,7 @@ METHOD(listener_t, ike_updown, bool, { data = chunk_clone(chunk_create(this->data, strlen(this->data))); } - notify = notify_payload_create_from_protocol_and_type( + notify = notify_payload_create_from_protocol_and_type(NOTIFY, this->esp ? PROTO_ESP : PROTO_IKE, type); notify->set_spi(notify, this->spi); if (data.len) |