From 24b5a6bdda8f09593dd908c3fc69315ebb3754e1 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 22 Dec 2017 11:40:43 +0100 Subject: Add version information and --version --- ldadp.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ldadp.c') diff --git a/ldadp.c b/ldadp.c index bd9d6e0..bc5cdf9 100644 --- a/ldadp.c +++ b/ldadp.c @@ -12,6 +12,7 @@ #include "helper.h" #include "openssl.h" #include "helper.h" +#include "version.in.h" #include #include #include @@ -29,6 +30,12 @@ static char *certFile = NULL, *keyFile = NULL; int main(int argc, char **argv) { BOOL isdaemon = TRUE; + printf("Starting up ldadp %s\n", LDADP_VERSION); + printf("Commit: %s\n", LDADP_COMMIT); + printf("Commit time: %s\n", LDADP_COMMITTIME); + printf("Build time: %s\n", LDADP_BUILDTIME); + if (argc > 1 && strcmp(argv[1], "--version") == 0) + exit(0); if (argc < 2) { printf("Nö\n"); exit(1); -- cgit v1.2.3-55-g7522