Commit Graph

13 Commits (master)

Author SHA1 Message Date
Jeremy Rand 9c7589d64f
Suppress errchkjson false positive 2 years ago
Jeremy Rand ba3a981852
certdehydrate: Fix unit test for Golang issue 40458
CreateCertificate now checks the resulting signature as of Go 1.16+.
This was confusing our unit test for invalid dehydrated certs, which was
expecting to need to verify the cert after the cert was created.
3 years ago
Jeremy Rand d28a01dcd5
Use pointer receiver on DehydratedCertificate methods
Improves speed by avoiding copy operations.
3 years ago
Jeremy Rand eef31fbdc4
Use splicesign and standard x509
Thanks to Filippo Valsorda for the tip.
3 years ago
JeremyRand 7db5b5a2d2
Move x509 subpackage to its own repo
This avoids tying the ncdns repo to a specific Go version; we can maintain
separate branches of the x509-signature-splice repo per Go version with
much less hassle.
5 years ago
JeremyRand 5d508f62e2
goimports -w certdehydrate/certdehydrate_test.go 6 years ago
JeremyRand 6c7e9659ec
Merge #64: certdehydrate: Add tests for known valid and invalid signatures.
cb55a50 certdehydrate: Add tests for known valid and invalid signatures. (JeremyRand)

Pull request description:

Tree-SHA512: d64fc786c6d5206bf7e814e9b5a3cae3cf680f840449d02acf3f0cfa9e0286b9637ae6162b18a1645d0b406493d307daba63cd4320b64ddad4a384edc8131cb0
6 years ago
JeremyRand 5cbd43393a
certdehydrate: Add some additional error checking. 6 years ago
JeremyRand cb55a50bef
certdehydrate: Add tests for known valid and invalid signatures. 6 years ago
JeremyRand 8ec3281780
gofmt -s certdehydrate/certdehydrate_test.go 7 years ago
JeremyRand 62f0e6aa90
gofmt -s certdehydrate/certdehydrate.go 7 years ago
JeremyRand e1b2e31864
certdehydrate: Improve comments for exported functions. 7 years ago
JeremyRand e16ad6f62c
TLS dehydrated certificate injection for CryptoAPI trust store (triggered by hooking DNS lookups). 7 years ago