summaryrefslogtreecommitdiffstats
path: root/ldadp.c
diff options
context:
space:
mode:
authorSimon Rettberg2017-12-22 11:40:43 +0100
committerSimon Rettberg2017-12-22 11:40:43 +0100
commit24b5a6bdda8f09593dd908c3fc69315ebb3754e1 (patch)
tree71b72641416040fe15864f8aeb77377b6ba376c7 /ldadp.c
parentFix compile error (diff)
downloadldadp-24b5a6bdda8f09593dd908c3fc69315ebb3754e1.tar.gz
ldadp-24b5a6bdda8f09593dd908c3fc69315ebb3754e1.tar.xz
ldadp-24b5a6bdda8f09593dd908c3fc69315ebb3754e1.zip
Add version information and --version
Diffstat (limited to 'ldadp.c')
-rw-r--r--ldadp.c7
1 files changed, 7 insertions, 0 deletions
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 <stdio.h>
#include <socket.h>
#include <io.h>
@@ -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);