From 7062a5789410e34a4ca4d16786a4f46983acf893 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Mon, 19 May 2014 16:24:38 +0200 Subject: Change default protocol version from 1 to 0. RFC6962 "v1" is 0, not 1. Also, use a define and not a literal. Also also, move the define to plop.hrl. --- include/plop.hrl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') 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() }). -- cgit v1.1