Removed VICI protocol versioning
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user