aboutsummaryrefslogtreecommitdiffstats
path: root/src/swanctl/commands/list_conns.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2015-03-18 15:03:28 +0100
committerMartin Willi <martin@revosec.ch>2015-03-18 15:03:28 +0100
commitc5f4e7c69e0774154c6a1645e6c868f96fd27c1a (patch)
tree45740539414014888f2015bf799e24e20260b895 /src/swanctl/commands/list_conns.c
parentc7bb1dc3d97ac9b36036b050714a3c4567da3290 (diff)
parent2185c29b6515a26f8a9a6ca7740e4dbcd46e6451 (diff)
downloadstrongswan-c5f4e7c69e0774154c6a1645e6c868f96fd27c1a.tar.bz2
strongswan-c5f4e7c69e0774154c6a1645e6c868f96fd27c1a.tar.xz
Merge branch 'vici-python'
Introduce a Python Egg for the vici plugin, contributed by Björn Schuberg.
Diffstat (limited to 'src/swanctl/commands/list_conns.c')
-rw-r--r--src/swanctl/commands/list_conns.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/swanctl/commands/list_conns.c b/src/swanctl/commands/list_conns.c
index 31ab9c40a..019c88888 100644
--- a/src/swanctl/commands/list_conns.c
+++ b/src/swanctl/commands/list_conns.c
@@ -103,7 +103,7 @@ CALLBACK(conn_sn, int,
{
return vici_parse_cb(res, children_sn, NULL, NULL, NULL);
}
- if (streq(name, "local") || streq(name, "remote"))
+ if (strpfx(name, "local") || strpfx(name, "remote"))
{
hashtable_t *auth;
@@ -112,7 +112,8 @@ CALLBACK(conn_sn, int,
if (ret == 0)
{
printf(" %s %s authentication:\n",
- name, auth->get(auth, "class") ?: "unspecified");
+ strpfx(name, "local") ? "local" : "remote",
+ auth->get(auth, "class") ?: "unspecified");
if (auth->get(auth, "id"))
{
printf(" id: %s\n", auth->get(auth, "id"));