diff options
author | Clavister OpenSource <opensource@clavister.com> | 2011-12-12 14:35:34 +0100 |
---|---|---|
committer | Clavister OpenSource <opensource@clavister.com> | 2012-03-20 17:31:17 +0100 |
commit | e647c98a139c4421e1160f2383e3fb68ddd45aeb (patch) | |
tree | 395597876470b3e31fde4c49369aa1903983d3f7 /src | |
parent | cc6b03bb5a4dbdf74568d6966159380861c71c79 (diff) | |
download | strongswan-e647c98a139c4421e1160f2383e3fb68ddd45aeb.tar.bz2 strongswan-e647c98a139c4421e1160f2383e3fb68ddd45aeb.tar.xz |
Setting Protocol ID of notifys sent from task manager to ISAKMP
Diffstat (limited to 'src')
-rwxr-xr-x | src/libcharon/sa/task_manager_v1.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/libcharon/sa/task_manager_v1.c b/src/libcharon/sa/task_manager_v1.c index e899b0687..65cce8e46 100755 --- a/src/libcharon/sa/task_manager_v1.c +++ b/src/libcharon/sa/task_manager_v1.c @@ -505,6 +505,7 @@ static status_t build_response(private_task_manager_t *this, message_t *request) /** * Send a notify in a separate INFORMATIONAL exchange back to the sender. + * The notify protocol_id is set to ISAKMP */ static void send_notify_response(private_task_manager_t *this, message_t *request, notify_type_t type, @@ -538,7 +539,17 @@ static void send_notify_response(private_task_manager_t *this, } else { - response->add_notify(response, FALSE, type, data); + notify_payload_t *notify; + + notify = notify_payload_create_from_protocol_and_type(NOTIFY_V1, + PROTO_IKE, type); + + if (data.ptr) + { + notify->set_notification_data(notify, data); + } + + response->add_payload(response, (payload_t*)notify); } me = this->ike_sa->get_my_host(this->ike_sa); |