aboutsummaryrefslogtreecommitdiffstats
path: root/src/frontends/osx
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2013-07-31 11:37:39 +0200
committerMartin Willi <martin@revosec.ch>2013-07-31 11:41:31 +0200
commit546235d34c311fd453a9ab5ac21234b2385dbb0a (patch)
treeca219b0dbd185dfe8a75706b6229d9295effe9c5 /src/frontends/osx
parent83a0b74da82547835b95314e356a2b1ba3f7447e (diff)
downloadstrongswan-546235d34c311fd453a9ab5ac21234b2385dbb0a.tar.bz2
strongswan-546235d34c311fd453a9ab5ac21234b2385dbb0a.tar.xz
charon-xpc: fix TS getting after changing CHILD_SA API
Diffstat (limited to 'src/frontends/osx')
-rw-r--r--src/frontends/osx/charon-xpc/xpc_channels.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/frontends/osx/charon-xpc/xpc_channels.c b/src/frontends/osx/charon-xpc/xpc_channels.c
index 9b5260047..fb65b9c39 100644
--- a/src/frontends/osx/charon-xpc/xpc_channels.c
+++ b/src/frontends/osx/charon-xpc/xpc_channels.c
@@ -363,12 +363,16 @@ METHOD(listener_t, child_updown, bool,
xpc_dictionary_set_string(msg, "event", "child_down");
}
- list = child_sa->get_traffic_selectors(child_sa, TRUE);
+ list = linked_list_create_from_enumerator(
+ child_sa->create_ts_enumerator(child_sa, TRUE));
snprintf(buf, sizeof(buf), "%#R", list);
+ list->destroy(list);
xpc_dictionary_set_string(msg, "ts_local", buf);
- list = child_sa->get_traffic_selectors(child_sa, FALSE);
+ list = linked_list_create_from_enumerator(
+ child_sa->create_ts_enumerator(child_sa, FALSE));
snprintf(buf, sizeof(buf), "%#R", list);
+ list->destroy(list);
xpc_dictionary_set_string(msg, "ts_remote", buf);
xpc_connection_send_message(entry->conn, msg);