summaryrefslogtreecommitdiffstats
path: root/runtime/librsgt.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-03-17 15:46:24 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-03-17 15:46:24 +0100
commitb09d37063fc155ff5ec38430c679da5be5de0dcc (patch)
tree0ac345aa1f8a74d29b51f40eb5aa5051cbb09942 /runtime/librsgt.h
parent03901766c7f452c637ac57ec526b98895da510d5 (diff)
downloadrsyslog-b09d37063fc155ff5ec38430c679da5be5de0dcc.tar.gz
rsyslog-b09d37063fc155ff5ec38430c679da5be5de0dcc.tar.bz2
rsyslog-b09d37063fc155ff5ec38430c679da5be5de0dcc.zip
logsig: milestone/verfier: block timestamp verification almost complete
unfortunately, there seems to be a problem with the GuardTime API, so that I need their support before being able to carry on. Once I receive it, it should be fairly quick to complete the function. I am commiting this work as I do not know how long it will take to receive an answer.
Diffstat (limited to 'runtime/librsgt.h')
-rw-r--r--runtime/librsgt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/librsgt.h b/runtime/librsgt.h
index 35ee96b5..26eaf8ee 100644
--- a/runtime/librsgt.h
+++ b/runtime/librsgt.h
@@ -126,6 +126,8 @@ struct rsgtstatefile {
#define RSGTE_INVLD_TREE_HASH 13 /* invalid tree hash (failed verification) */
#define RSGTE_INVLD_REC_HASHID 14 /* invalid record hash ID (failed verification) */
#define RSGTE_INVLD_TREE_HASHID 15 /* invalid tree hash ID (failed verification) */
+#define RSGTE_MISS_BLOCKSIG 16 /* block signature record missing when expected */
+#define RSGTE_INVLD_TIMESTAMP 17 /* RFC3161 timestamp is invalid */
static inline uint16_t
@@ -262,6 +264,7 @@ int rsgt_chkFileHdr(FILE *fp, char *expect);
gtfile rsgt_vrfyConstruct_gf(void);
void rsgt_vrfyBlkInit(gtfile gf, block_sig_t *bs, uint8_t bHasRecHashes, uint8_t bHasIntermedHashes);
int rsgt_vrfy_nextRec(block_sig_t *bs, gtfile gf, FILE *sigfp, unsigned char *rec, size_t lenRec);
+int verifyBLOCK_SIG(block_sig_t *bs, gtfile gf, FILE *sigfp, uint64_t nRecs);
/* TODO: replace these? */
void hash_m(gtfile gf, GTDataHash **m);