aboutsummaryrefslogtreecommitdiffstats
path: root/main/strongswan/2002-vici-add-deprecated-async-parameter.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-08-18 13:39:38 +0300
committerTimo Teräs <timo.teras@iki.fi>2016-08-18 13:40:50 +0300
commit8cff117adb70765c083260d727f9e2a3c3fe9407 (patch)
treec4070bfad2ba2b823a45f402d962d793a824819c /main/strongswan/2002-vici-add-deprecated-async-parameter.patch
parentd69f651532084cd3842feaf6042650f72ab30ee4 (diff)
downloadaports-8cff117adb70765c083260d727f9e2a3c3fe9407.tar.bz2
aports-8cff117adb70765c083260d727f9e2a3c3fe9407.tar.xz
main/strongswan: upgrade to 5.5.0
Diffstat (limited to 'main/strongswan/2002-vici-add-deprecated-async-parameter.patch')
-rw-r--r--main/strongswan/2002-vici-add-deprecated-async-parameter.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/main/strongswan/2002-vici-add-deprecated-async-parameter.patch b/main/strongswan/2002-vici-add-deprecated-async-parameter.patch
new file mode 100644
index 0000000000..577532867c
--- /dev/null
+++ b/main/strongswan/2002-vici-add-deprecated-async-parameter.patch
@@ -0,0 +1,49 @@
+From d3c1585742909cbf306da1bf489b7f1560e8dab5 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:15 +0300
+Subject: [PATCH 5/5] vici: add (deprecated) async parameter
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This is obsoleted by the new "timeout=-1" option that achieves
+the same. Only for compatibility with old versions of quagga-nhrp.
+
+Signed-off-by: Timo Teräs <timo.teras@iki.fi>
+---
+ src/libcharon/plugins/vici/vici_control.c | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/src/libcharon/plugins/vici/vici_control.c b/src/libcharon/plugins/vici/vici_control.c
+index 55b8c99..eba7640 100644
+--- a/src/libcharon/plugins/vici/vici_control.c
++++ b/src/libcharon/plugins/vici/vici_control.c
+@@ -195,7 +195,7 @@ CALLBACK(initiate, vici_message_t*,
+ host_t *my_host = NULL, *other_host = NULL;
+ char *child, *ike, *my_host_str, *other_host_str;
+ int timeout;
+- bool limits;
++ bool limits, async;
+ controller_cb_t log_cb = NULL;
+ log_info_t log = {
+ .dispatcher = this->dispatcher,
+@@ -206,6 +206,7 @@ CALLBACK(initiate, vici_message_t*,
+ ike = request->get_str(request, NULL, "ike");
+ timeout = request->get_int(request, 0, "timeout");
+ limits = request->get_bool(request, FALSE, "init-limits");
++ async = request->get_bool(request, FALSE, "async");
+ log.level = request->get_int(request, 1, "loglevel");
+ my_host_str = request->get_str(request, NULL, "my-host");
+ other_host_str = request->get_str(request, NULL, "other-host");
+@@ -214,7 +215,7 @@ CALLBACK(initiate, vici_message_t*,
+ {
+ return send_reply(this, "missing configuration name");
+ }
+- if (timeout >= 0)
++ if (timeout >= 0 && !async)
+ {
+ log_cb = (controller_cb_t)log_vici;
+ }
+--
+2.5.0
+