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-23 15:50:33 +0100
commit790cd8a7d02fc8c7ac42b4e1e8aa6a15b38a8288 (patch)
treeb109bc7774e8b03c64384b04436d222c31da13b8 /src/catlfish.erl
parentd1d2185b420d873a97bc78c5e07482accaf574fc (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