diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2015-12-09 20:39:59 +0100 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2015-12-11 18:26:55 +0100 |
commit | 44d3b02b579be9a186031a950ca696532ea1b8a3 (patch) | |
tree | 6294368c54e81df336dfae1cc1215d63643473ad /src/swanctl/commands/version.c | |
parent | b6dba6db744c8cb1b71c49f5d714765da1ac1236 (diff) | |
download | strongswan-44d3b02b579be9a186031a950ca696532ea1b8a3.tar.bz2 strongswan-44d3b02b579be9a186031a950ca696532ea1b8a3.tar.xz |
Removed VICI protocol versioning
Diffstat (limited to 'src/swanctl/commands/version.c')
-rw-r--r-- | src/swanctl/commands/version.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/src/swanctl/commands/version.c b/src/swanctl/commands/version.c index 32dd77e31..0c499e4cc 100644 --- a/src/swanctl/commands/version.c +++ b/src/swanctl/commands/version.c @@ -2,9 +2,6 @@ * Copyright (C) 2014 Martin Willi * Copyright (C) 2014 revosec AG * - * Copyright (C) 2015 Andreas Steffen - * HSR Hochschule fuer Technik Rapperswil - * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your @@ -18,8 +15,6 @@ #include "command.h" -#include <vici_version.h> - #include <errno.h> static int version(vici_conn_t *conn) @@ -56,8 +51,7 @@ static int version(vici_conn_t *conn) if (!daemon) { - printf("strongSwan swanctl %s vici %N\n", VERSION, - vici_version_names, VICI_VERSION); + printf("strongSwan swanctl %s\n", VERSION); return 0; } @@ -75,13 +69,12 @@ static int version(vici_conn_t *conn) } else { - printf("strongSwan %s vici %s %s (%s, %s, %s)\n", - vici_find_str(res, "" , "version"), - vici_find_str(res, "1.0", "vici"), - vici_find_str(res, "" , "daemon"), - vici_find_str(res, "" , "sysname"), - vici_find_str(res, "" , "release"), - vici_find_str(res, "" , "machine")); + printf("strongSwan %s %s (%s, %s, %s)\n", + vici_find_str(res, "", "version"), + vici_find_str(res, "", "daemon"), + vici_find_str(res, "", "sysname"), + vici_find_str(res, "", "release"), + vici_find_str(res, "", "machine")); } vici_free_res(res); return 0; |