aboutsummaryrefslogtreecommitdiffstats
path: root/src/conftest/hooks/unencrypted_notify.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-03-20 17:56:18 +0100
committerMartin Willi <martin@revosec.ch>2012-03-20 17:57:53 +0100
commitb1f2f05c926f3e36755bb3b2711bd1732c062047 (patch)
tree27f491ad55217d40051eb45db4de5a8a9217817a /src/conftest/hooks/unencrypted_notify.c
parent3cea55b0c819f90045a7ae5657ed476834b74746 (diff)
parentd112a7e1feb583d011ba7868bb3b27b147dc2f68 (diff)
downloadstrongswan-b1f2f05c926f3e36755bb3b2711bd1732c062047.tar.bz2
strongswan-b1f2f05c926f3e36755bb3b2711bd1732c062047.tar.xz
Merge branch 'ikev1-clean' into ikev1-master
Conflicts: configure.in man/ipsec.conf.5.in src/libcharon/daemon.c src/libcharon/plugins/eap_ttls/eap_ttls_peer.c src/libcharon/plugins/eap_radius/eap_radius_accounting.c src/libcharon/plugins/eap_radius/eap_radius_forward.c src/libcharon/plugins/farp/farp_listener.c src/libcharon/sa/ike_sa.c src/libcharon/sa/keymat.c src/libcharon/sa/task_manager.c src/libcharon/sa/trap_manager.c src/libstrongswan/plugins/x509/x509_cert.c src/libstrongswan/utils.h Applied lost changes of moved files keymat.c and task_manager.c. Updated listener_t.message hook signature in new plugins.
Diffstat (limited to 'src/conftest/hooks/unencrypted_notify.c')
-rw-r--r--src/conftest/hooks/unencrypted_notify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conftest/hooks/unencrypted_notify.c b/src/conftest/hooks/unencrypted_notify.c
index 80bdc64b7..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)
@@ -95,7 +95,7 @@ METHOD(listener_t, ike_updown, bool,
DBG1(DBG_CFG, "injecting unencrypted INFORMATIONAL message");
- message = message_create();
+ message = message_create(IKEV2_MAJOR_VERSION, IKEV2_MINOR_VERSION);
message->set_message_id(message, this->id);
message->set_ike_sa_id(message, ike_sa->get_id(ike_sa));
message->set_exchange_type(message, INFORMATIONAL);