summaryrefslogtreecommitdiffstats
path: root/runtime/librsgt.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-03-25 15:56:33 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2013-03-25 15:56:33 +0100
commitc896a6ba7498e15ddfe869823a64434a4180d57b (patch)
tree04d665ab29ad27f115d1cf7854862b18b97eb75f /runtime/librsgt.h
parent199630a5ef8f0c919fbbbd9e122415d1d72886a3 (diff)
downloadrsyslog-c896a6ba7498e15ddfe869823a64434a4180d57b.tar.gz
rsyslog-c896a6ba7498e15ddfe869823a64434a4180d57b.tar.bz2
rsyslog-c896a6ba7498e15ddfe869823a64434a4180d57b.zip
rsgtsig: finish implementation of 'extend' mode
This is tested as far as possible. However, the actual extend case can only be tested in about three weeks from now when the next publication is out. I have done module-testing with a mockup extend call, so chances are great the final test will be passed.
Diffstat (limited to 'runtime/librsgt.h')
-rw-r--r--runtime/librsgt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/librsgt.h b/runtime/librsgt.h
index d1c2b521..d308d4c3 100644
--- a/runtime/librsgt.h
+++ b/runtime/librsgt.h
@@ -147,6 +147,9 @@ struct rsgtstatefile {
/* after that, the hash value is contained within the file */
};
+/* Flags and record types for TLV handling */
+#define RSGT_FLAG_TLV16 0x20
+
/* error states */
#define RSGTE_IO 1 /* any kind of io error */
#define RSGTE_FMT 2 /* data fromat error */
@@ -167,6 +170,7 @@ struct rsgtstatefile {
#define RSGTE_MISS_BLOCKSIG 16 /* block signature record missing when expected */
#define RSGTE_INVLD_TIMESTAMP 17 /* RFC3161 timestamp is invalid */
#define RSGTE_TS_DERDECODE 18 /* error DER-Decoding a timestamp */
+#define RSGTE_TS_DERENCODE 19 /* error DER-Encoding a timestamp */
/* the following function maps RSGTE_* state to a string - must be updated
* whenever a new state is added.
@@ -215,6 +219,8 @@ RSGTE2String(int err)
return "RFC3161 timestamp invalid";
case RSGTE_TS_DERDECODE:
return "error DER-decoding RFC3161 timestamp";
+ case RSGTE_TS_DERENCODE:
+ return "error DER-encoding RFC3161 timestamp";
default:
return "unknown error";
}