summaryrefslogtreecommitdiffstats
path: root/tools/rsgtutil.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-03-18 14:41:11 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-03-18 14:41:11 +0100
commit1125a60d3fcc5b64e0cc7abe54748b6d6ee2fb28 (patch)
tree418f5ad845ec05e7c0b8c41bfafa7080ea7ab3fc /tools/rsgtutil.c
parentb09d37063fc155ff5ec38430c679da5be5de0dcc (diff)
downloadrsyslog-1125a60d3fcc5b64e0cc7abe54748b6d6ee2fb28.tar.gz
rsyslog-1125a60d3fcc5b64e0cc7abe54748b6d6ee2fb28.tar.bz2
rsyslog-1125a60d3fcc5b64e0cc7abe54748b6d6ee2fb28.zip
logsig: implement timestamp verification
We now use a higher-level verification function as suggested by GuardTime.
Diffstat (limited to 'tools/rsgtutil.c')
-rw-r--r--tools/rsgtutil.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/rsgtutil.c b/tools/rsgtutil.c
index cc045f8c..0ccfcd7b 100644
--- a/tools/rsgtutil.c
+++ b/tools/rsgtutil.c
@@ -192,6 +192,9 @@ verify(char *name)
goto err;
}
}
+
+ rsgtInit("rsyslog rsgtutil " VERSION);
+
if((r = rsgt_chkFileHdr(sigfp, "LOGSIG10")) != 0) goto err;
gf = rsgt_vrfyConstruct_gf();
@@ -231,6 +234,7 @@ err:
fclose(sigfp);
if(r != RSGTE_EOF)
fprintf(stderr, "error %d processing file %s [%s]\n", r, name, sigfname);
+ rsgtExit();
}
static void