aboutsummaryrefslogtreecommitdiff
path: root/reqres.go
Commit message (Collapse)AuthorAgeFilesLines
* refactored signing/verification parts that are log specificRasmus Dahlberg2020-11-051-2/+2
| | | | These methods are now private and attached to LogParameters.
* minor refactor of request-response code pathRasmus Dahlberg2020-11-051-44/+48
| | | | | Mainly attaching log-specific functionality to LogParameters, and returning pointers to struct (as opposed to struct).
* simplified encoding and decodingRasmus Dahlberg2020-11-051-40/+22
| | | | | Go's "encoding/json" already takes care of encoding and decoding byte slices as base64. As such, it need not be done explicitly by us.
* refactor types and documentationRasmus Dahlberg2020-10-301-9/+6
| | | | | | Structured files a bit better, added more documentation, switched to pointers as default (unless specifically motivated not to do so), and encapsulated TLS (un)marshaling for the respective types that use it.
* removed fixed TODO commentRasmus Dahlberg2020-10-301-1/+0
|
* added max range and get-entries sanity checkingRasmus Dahlberg2020-10-301-4/+7
|
* started refactoring add-entry code path according to docRasmus Dahlberg2020-10-301-60/+39
|
* updated json output according to api docRasmus Dahlberg2020-10-301-80/+7
|
* fixed tls length specifiersRasmus Dahlberg2020-10-291-2/+2
|
* go fmtRasmus Dahlberg2020-10-281-2/+2
|
* added consistency-proof code pathRasmus Dahlberg2020-10-281-1/+43
|
* added signed tree head and get-sth code pathRasmus Dahlberg2020-10-281-1/+16
|
* added ed25519 signing and SDIsRasmus Dahlberg2020-10-271-0/+16
|
* isolated chain and signature verificationRasmus Dahlberg2020-10-271-30/+11
|
* decoupled log instance and infoRasmus Dahlberg2020-10-271-9/+16
| | | | | Makes things a bit more modular. As part of this process I also replaced ct/x509 with crypto/x509, which already suits our needs.
* moved common json-write code into a helperRasmus Dahlberg2020-10-271-0/+14
|
* added leaf appendixRasmus Dahlberg2020-10-271-17/+39
|
* tested certificate chain code path furtherRasmus Dahlberg2020-10-261-1/+17
| | | | | Added more documentation and quick helper scripts for now. We need to specify which signature schemes we expect/support from submitters.
* added signature verification for add-entryRasmus Dahlberg2020-10-261-8/+22
|
* added start on get-anchors code pathRasmus Dahlberg2020-10-231-0/+14
|
* added basic trust-anchor code pathRasmus Dahlberg2020-10-231-3/+17
| | | | | Pretty much the bare minimum to load trust anchors from file and check that the submitter's certificate chains back to something valid.
* ran go fmtRasmus Dahlberg2020-10-231-1/+1
|
* refactored add-entry code pathRasmus Dahlberg2020-10-231-7/+51
|
* fixed json tag typoRasmus Dahlberg2020-10-231-1/+1
|
* refactored type.goRasmus Dahlberg2020-10-231-0/+119
Moved structures for in/out HTTP data into reqres.go and added basic doc comments. A few minor edits as well to make things consistent.