aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* reordered SthSource functionsRasmus Dahlberg2021-02-182-74/+74
|
* added TestNewActiveSthSourceRasmus Dahlberg2021-02-182-2/+59
|
* fixed unexpected reflect behaviorRasmus Dahlberg2021-02-183-16/+4
| | | | | | | | | | | | After tls.Unmarshal() an empty slice is not assigned the nil value, but rather a slice of zero length. It is in contrast to NewTreeHeadV1(), which assigns a nil value. Therefore, reflect.DeepEqual() considers them to be different. Fixed by assigning an empty tree head extension as `make([]byte, 0)`, and not looking for nil values but rather zero-length values with len(). Further read: "Note that a non-nil empty slice and a nil slice [...] are not deeply equal." (https://golang.org/pkg/reflect/#DeepEqual).
* Merge branch 'main' of github.com:system-transparency/stfe into mainRasmus Dahlberg2021-02-171-0/+67
|\
| * added witness cosigning protocol documentationRasmus Dahlberg2021-02-101-0/+67
| |
* | added basic server-side cosigning (work in progress)Rasmus Dahlberg2021-02-1711-107/+1175
|/
* removed x509utilRasmus Dahlberg2021-01-2922-968/+0
| | | | We use minimal namespaces instead of X509 certificates.
* replaced x509 with namespace on the client-sideRasmus Dahlberg2021-01-2912-224/+255
|
* updated server package such that it uses namespacesRasmus Dahlberg2021-01-282-34/+30
|
* fixed typoRasmus Dahlberg2021-01-281-1/+1
|
* improved namespace documentationRasmus Dahlberg2021-01-281-44/+46
|
* started replacing x509 with namespaceRasmus Dahlberg2021-01-2714-756/+334
|
* added namespace packageRasmus Dahlberg2021-01-263-0/+383
|
* added drafty documentation of namespacesRasmus Dahlberg2021-01-261-22/+76
| | | | | The namespace format is inspired by Keybase's key-ID format, such that we get rid of the X509 dependency.
* added expired certificateRasmus Dahlberg2020-12-022-8/+7
|
* added todo on namespaces in checksum entriesRasmus Dahlberg2020-12-021-0/+1
|
* added missing anchors in test caseRasmus Dahlberg2020-12-021-1/+1
|
* added instance and log parameter testsRasmus Dahlberg2020-12-025-35/+201
|
* started to clean-up instanceRasmus Dahlberg2020-12-014-112/+112
| | | | | Things like opening files is better place in the server package. Any code that is difficult to test should also not be in the STFE package.
* renamed and documented functionRasmus Dahlberg2020-12-015-30/+30
|
* attached url method on endpoint typeRasmus Dahlberg2020-12-015-26/+69
|
* removed possible todoRasmus Dahlberg2020-12-011-2/+0
| | | | | These named get parameter will anyway be hard-coded in some places, e.g., on structs that can be exported as json.
* removed explicit string functionRasmus Dahlberg2020-12-015-33/+29
|
* added an endpoint typeRasmus Dahlberg2020-11-307-54/+101
|
* removed TODORasmus Dahlberg2020-11-301-1/+0
| | | | | That the returned leaf and appendix are as expected follows from the newAddEntryRequest function and its separate test cases.
* made a few tests more robust and found errorRasmus Dahlberg2020-11-303-6/+10
|
* added and moved test dataRasmus Dahlberg2020-11-3027-76/+53
|
* migrated over to x509util/testdataRasmus Dahlberg2020-11-307-125/+35
|
* added verifySignature testsRasmus Dahlberg2020-11-271-1/+66
|
* added buildChainFromDerList testsRasmus Dahlberg2020-11-275-5/+129
|
* restored intermediate pem certificateRasmus Dahlberg2020-11-271-6/+6
| | | | It got replaced by mistake a few days ago.
* cleaned-up x509utilRasmus Dahlberg2020-11-273-66/+63
|
* added ParseDerChain testsRasmus Dahlberg2020-11-272-19/+100
|
* added ParseDerList testsRasmus Dahlberg2020-11-271-1/+62
|
* started to refactor proper testdata into x509utilRasmus Dahlberg2020-11-256-285/+291
|
* added VerifyChain testsRasmus Dahlberg2020-11-251-2/+151
|
* added NewCertPool testsRasmus Dahlberg2020-11-251-0/+21
|
* tested NewEd25519PrivateKeyRasmus Dahlberg2020-11-251-0/+68
|
* started on x509util testsRasmus Dahlberg2020-11-252-4/+162
|
* fixed error in test-case setupRasmus Dahlberg2020-11-251-1/+1
| | | | Second must be a valid to ensure that we fail on first.
* rephrased TODO as a noteRasmus Dahlberg2020-11-251-2/+2
|
* added get-entries response testRasmus Dahlberg2020-11-251-1/+60
|
* added get-anchors response testRasmus Dahlberg2020-11-251-1/+12
|
* added get-consistency-proof request parsing testRasmus Dahlberg2020-11-251-1/+61
|
* fixed file typo and added more testsRasmus Dahlberg2020-11-253-89/+197
| | | | | | - Added missing continue in TestNewGetEntries(), and checked all values in the returned request - Added TestNewGetProofByHashResponse()
* added get-entries request parsing testRasmus Dahlberg2020-11-252-9/+74
|
* improved readabilityRasmus Dahlberg2020-11-241-59/+55
|
* fixed minor commentsRasmus Dahlberg2020-11-242-6/+7
|
* removed resolved todoRasmus Dahlberg2020-11-241-20/+3
|
* added isolated trillian proof testsRasmus Dahlberg2020-11-243-12/+91
|