summaryrefslogtreecommitdiff
path: root/src/catlfish.erl
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2015-03-20 17:41:29 +0100
committerLinus Nordberg <linus@nordberg.se>2015-03-20 17:41:29 +0100
commitd9a584d19bec4e08477ca65348b26efb68bb8ecc (patch)
treeb109bc7774e8b03c64384b04436d222c31da13b8 /src/catlfish.erl
parent7e1b8b876fbfe63243409daba60ffac3d78cdd44 (diff)
Formatting; remove debug printouts.
Diffstat (limited to 'src/catlfish.erl')
-rw-r--r--src/catlfish.erl20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/catlfish.erl b/src/catlfish.erl
index 3b81baa..50811a1 100644
--- a/src/catlfish.erl
+++ b/src/catlfish.erl
@@ -91,24 +91,12 @@ serialise_signature_type(certificate_timestamp) ->
<<0:8>>;
serialise_signature_type(tree_hash) ->
<<1:8>>.
-%% deserialise_signature_type(<<0:8>>) ->
-%% certificate_timestamp;
-%% deserialise_signature_type(<<1:8>>) ->
-%% tree_hash.
-
-%% build_mtl(Timestamp, LeafCert) ->
-%% TSE = #timestamped_entry{timestamp = Timestamp,
-%% entry_type = x509_entry,
-%% signed_entry = LeafCert},
-%% MTL = #mtl{leaf_version = v1,
-%% leaf_type = timestamped_entry,
-%% entry = TSE},
-%% serialise(MTL).
calc_sct(TimestampedEntry) ->
- plop:serialise(plop:spt(list_to_binary([<<?PROTOCOL_VERSION:8>>,
- serialise_signature_type(certificate_timestamp),
- serialise(TimestampedEntry)]))).
+ plop:serialise(
+ plop:spt(list_to_binary([<<?PROTOCOL_VERSION:8>>,
+ serialise_signature_type(certificate_timestamp),
+ serialise(TimestampedEntry)]))).
get_sct(Hash, TimestampedEntry) ->
case application:get_env(catlfish, sctcache_root_path) of