aboutsummaryrefslogtreecommitdiffstats
path: root/src/swanctl/commands/version.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/swanctl/commands/version.c')
-rw-r--r--src/swanctl/commands/version.c21
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;