create a general TLS encoding/decoding library, analogous to asn1/
copy/move signature code into it
extract common parts of the LogClient into JSONClient (and tweak slightly) to allow re-use
convert existing v1 client code to use the extracted/generalized versions.
Opinions sought on whether I should do less or more commonization:
I could commonize less; for example, I could leave the existing client/ with its own version of DigitallySigned by just omitting commit 5e8bfae (the current change has knock-on compilation failures for anything that uses ct.DigitallySigned, e.g. Trillian).
I could commonize more, and work through all of the v1 client code to replace the hand-rolled TLS-encoding code with use of the tls/ library.
Summary:
asn1/
LogClient
intoJSONClient
(and tweak slightly) to allow re-useOpinions sought on whether I should do less or more commonization:
client/
with its own version ofDigitallySigned
by just omitting commit 5e8bfae (the current change has knock-on compilation failures for anything that usesct.DigitallySigned
, e.g. Trillian).client
code to replace the hand-rolled TLS-encoding code with use of thetls/
library.