diff options
author | Linus Nordberg <linus@nordberg.se> | 2015-03-23 15:22:15 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2015-03-23 15:50:33 +0100 |
commit | 3f9f38468dd9f43a7a71768dbe84dd40723c30c5 (patch) | |
tree | b9ff7ff7ac7c4a946675a261268e86444594ea59 /src/catlfish.erl | |
parent | 1812b745e7a3d39b75d295edfa8b9287d2c6a479 (diff) |
Add spec's for most functions.
NOTE: We're not dialyzer clean yet.
Diffstat (limited to 'src/catlfish.erl')
-rw-r--r-- | src/catlfish.erl | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/catlfish.erl b/src/catlfish.erl index 50811a1..2e5ffd4 100644 --- a/src/catlfish.erl +++ b/src/catlfish.erl @@ -87,6 +87,7 @@ deserialise_entry_type(<<0:16>>) -> deserialise_entry_type(<<1:16>>) -> precert_entry. +-spec serialise_signature_type(certificate_timestamp|tree_hash) -> binary(). serialise_signature_type(certificate_timestamp) -> <<0:8>>; serialise_signature_type(tree_hash) -> @@ -177,16 +178,6 @@ timestamped_entry(Timestamp, EntryType, LeafCert, CertChain) -> entry_type = EntryType, signed_entry = SignedEntry}. -%% -spec serialise_logentry(integer(), binary(), [binary()]) -> binary(). -%% serialise_logentry(Timestamp, LeafCert, CertChain) -> -%% list_to_binary( -%% [<<Timestamp:64>>, -%% list_to_binary( -%% [encode_tls_vector(LeafCert, 3), -%% encode_tls_vector( -%% list_to_binary( -%% [encode_tls_vector(X, 3) || X <- CertChain]), 3)])]). - -spec deserialise_mtl(binary()) -> mtl(). deserialise_mtl(Data) -> <<LeafVersionBin:1/binary, |