summaryrefslogtreecommitdiff
path: root/include/plop.hrl
diff options
context:
space:
mode:
Diffstat (limited to 'include/plop.hrl')
-rw-r--r--include/plop.hrl4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/plop.hrl b/include/plop.hrl
index 354a0f2..b1b4661 100644
--- a/include/plop.hrl
+++ b/include/plop.hrl
@@ -2,6 +2,8 @@
%%% database storage, some for interfacing with consumers and some are
%%% for serialisation.
+-define(PLOPVERSION, 0).
+
-type signature_type() :: certificate_timestamp | tree_hash | test. % uint8
-type entry_type() :: x509 | precert | test. % uint16
-type leaf_type() :: timestamped_entry | test. % uint8
@@ -10,7 +12,7 @@
%% get-entries requests and also the input to the hash function for
%% leaf hashes in the tree. RFC 6962 sect 3.4.
-record(mtl, {
- version = 1 :: pos_integer(),
+ version = ?PLOPVERSION :: pos_integer(),
leaf_type = timestamped_entry :: leaf_type(),
entry :: timestamped_entry()
}).