summaryrefslogtreecommitdiff
path: root/curvetun.c
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-07-09 11:15:14 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-07-09 11:15:14 +0200
commitc07bdeb7419baf7f66e8de386744be9ec4891bb3 (patch)
tree881904b2400c801f9803f388861b93264a6ee992 /curvetun.c
parent65c34d8fec7707e93cecd0378d06fa9b184565e8 (diff)
all: show git id in --version information
In order to be able to better track regressions or to give support, let us track the Git id as well in version information. This makes the ``--version'' switch actually useful. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'curvetun.c')
-rw-r--r--curvetun.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/curvetun.c b/curvetun.c
index ffb6314..6d93ec9 100644
--- a/curvetun.c
+++ b/curvetun.c
@@ -34,6 +34,7 @@
#include "xmalloc.h"
#include "curvetun.h"
#include "curve.h"
+#include "config.h"
#include "ct_usermgmt.h"
#include "ct_servmgmt.h"
#include "ioops.h"
@@ -87,7 +88,7 @@ static void signal_handler(int number)
static void __noreturn help(void)
{
- printf("\ncurvetun %s, lightweight curve25519-based VPN/IP tunnel\n", VERSION_STRING);
+ printf("\ncurvetun %s, lightweight curve25519-based IP tunnel\n", VERSION_STRING);
puts("http://www.netsniff-ng.org\n\n"
"Usage: curvetun [options]\n"
"Options, general:\n"
@@ -129,8 +130,9 @@ static void __noreturn help(void)
static void __noreturn version(void)
{
- printf("\ncurvetun %s, lightweight curve25519-based VPN/IP tunnel\n", VERSION_LONG);
- puts("http://www.netsniff-ng.org\n\n"
+ printf("\ncurvetun %s, Git id: %s\n", VERSION_LONG, GITVERSION);
+ puts("lightweight curve25519-based IP tunnel\n"
+ "http://www.netsniff-ng.org\n\n"
"Please report bugs to <bugs@netsniff-ng.org>\n"
"Copyright (C) 2011-2013 Daniel Borkmann <dborkma@tik.ee.ethz.ch>,\n"
"Swiss federal institute of technology (ETH Zurich)\n"