diff options
author | Timo Teräs <timo.teras@iki.fi> | 2016-03-26 14:19:31 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-03-26 14:19:44 +0000 |
commit | 131cca54d72069d76358c4cd4ac31efaa81ab6e8 (patch) | |
tree | 980182044014964034ce45830b68ee8ff9f136b3 /main/strongswan/1002-vici-send-certificates-for-ike-sa-events.patch | |
parent | 00efbea7aa2a383c4f3a7322a6a669bdea5c04bb (diff) | |
download | aports-131cca54d72069d76358c4cd4ac31efaa81ab6e8.tar.bz2 aports-131cca54d72069d76358c4cd4ac31efaa81ab6e8.tar.xz |
main/strongswan: upgrade to 5.4.0
Diffstat (limited to 'main/strongswan/1002-vici-send-certificates-for-ike-sa-events.patch')
-rw-r--r-- | main/strongswan/1002-vici-send-certificates-for-ike-sa-events.patch | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/main/strongswan/1002-vici-send-certificates-for-ike-sa-events.patch b/main/strongswan/1002-vici-send-certificates-for-ike-sa-events.patch index 792d11381e..f5f5945889 100644 --- a/main/strongswan/1002-vici-send-certificates-for-ike-sa-events.patch +++ b/main/strongswan/1002-vici-send-certificates-for-ike-sa-events.patch @@ -1,4 +1,4 @@ -From b24d03c86cedbaa8d2c89ab98aab9f974e4d4f27 Mon Sep 17 00:00:00 2001 +From 549ee919f0d94d5b2377fc9d5ad7fa6ebbb43374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi> Date: Mon, 21 Sep 2015 13:42:05 +0300 Subject: [PATCH] vici: send certificates for ike-sa events @@ -12,10 +12,10 @@ Signed-off-by: Timo Teräs <timo.teras@iki.fi> 1 file changed, 41 insertions(+), 7 deletions(-) diff --git a/src/libcharon/plugins/vici/vici_query.c b/src/libcharon/plugins/vici/vici_query.c -index 9a3d832..e66ef45 100644 +index 284c23e..8c538f0 100644 --- a/src/libcharon/plugins/vici/vici_query.c +++ b/src/libcharon/plugins/vici/vici_query.c -@@ -264,13 +264,15 @@ static void list_vips(private_vici_query_t *this, vici_builder_t *b, +@@ -266,7 +266,7 @@ static void list_vips(private_vici_query_t *this, vici_builder_t *b, * List details of an IKE_SA */ static void list_ike(private_vici_query_t *this, vici_builder_t *b, @@ -24,17 +24,18 @@ index 9a3d832..e66ef45 100644 { time_t t; ike_sa_id_t *id; - identification_t *eap; +@@ -274,6 +274,8 @@ static void list_ike(private_vici_query_t *this, vici_builder_t *b, proposal_t *proposal; u_int16_t alg, ks; + host_t *host; + auth_cfg_t *auth_cfg; + enumerator_t *enumerator; b->add_kv(b, "uniqueid", "%u", ike_sa->get_unique_id(ike_sa)); b->add_kv(b, "version", "%u", ike_sa->get_version(ike_sa)); -@@ -278,9 +280,41 @@ static void list_ike(private_vici_query_t *this, vici_builder_t *b, - - b->add_kv(b, "local-host", "%H", ike_sa->get_my_host(ike_sa)); +@@ -283,11 +285,43 @@ static void list_ike(private_vici_query_t *this, vici_builder_t *b, + b->add_kv(b, "local-host", "%H", host); + b->add_kv(b, "local-port", "%d", host->get_port(host)); b->add_kv(b, "local-id", "%Y", ike_sa->get_my_id(ike_sa)); + if (add_certs) + { @@ -53,7 +54,9 @@ index 9a3d832..e66ef45 100644 + enumerator->destroy(enumerator); + } - b->add_kv(b, "remote-host", "%H", ike_sa->get_other_host(ike_sa)); + host = ike_sa->get_other_host(ike_sa); + b->add_kv(b, "remote-host", "%H", host); + b->add_kv(b, "remote-port", "%d", host->get_port(host)); b->add_kv(b, "remote-id", "%Y", ike_sa->get_other_id(ike_sa)); + if (add_certs) + { @@ -74,7 +77,7 @@ index 9a3d832..e66ef45 100644 eap = ike_sa->get_other_eap_id(ike_sa); -@@ -395,7 +429,7 @@ CALLBACK(list_sas, vici_message_t*, +@@ -404,7 +438,7 @@ CALLBACK(list_sas, vici_message_t*, b = vici_builder_create(); b->begin_section(b, ike_sa->get_name(ike_sa)); @@ -83,7 +86,7 @@ index 9a3d832..e66ef45 100644 b->begin_section(b, "child-sas"); csas = ike_sa->create_child_sa_enumerator(ike_sa); -@@ -1110,7 +1144,7 @@ METHOD(listener_t, ike_updown, bool, +@@ -1354,7 +1388,7 @@ METHOD(listener_t, ike_updown, bool, } b->begin_section(b, ike_sa->get_name(ike_sa)); @@ -92,7 +95,7 @@ index 9a3d832..e66ef45 100644 b->end_section(b); this->dispatcher->raise_event(this->dispatcher, -@@ -1135,10 +1169,10 @@ METHOD(listener_t, ike_rekey, bool, +@@ -1379,10 +1413,10 @@ METHOD(listener_t, ike_rekey, bool, b = vici_builder_create(); b->begin_section(b, old->get_name(old)); b->begin_section(b, "old"); @@ -105,7 +108,7 @@ index 9a3d832..e66ef45 100644 b->end_section(b); b->end_section(b); -@@ -1168,7 +1202,7 @@ METHOD(listener_t, child_updown, bool, +@@ -1412,7 +1446,7 @@ METHOD(listener_t, child_updown, bool, } b->begin_section(b, ike_sa->get_name(ike_sa)); @@ -114,7 +117,7 @@ index 9a3d832..e66ef45 100644 b->begin_section(b, "child-sas"); b->begin_section(b, child_sa->get_name(child_sa)); -@@ -1200,7 +1234,7 @@ METHOD(listener_t, child_rekey, bool, +@@ -1444,7 +1478,7 @@ METHOD(listener_t, child_rekey, bool, b = vici_builder_create(); b->begin_section(b, ike_sa->get_name(ike_sa)); @@ -124,5 +127,5 @@ index 9a3d832..e66ef45 100644 b->begin_section(b, old->get_name(old)); -- -2.6.3 +2.7.4 |