diff --git a/ctclient/rfc6962.go b/ctclient/rfc6962.go index 864419d..6ea4e74 100644 --- a/ctclient/rfc6962.go +++ b/ctclient/rfc6962.go @@ -17,8 +17,8 @@ import ( "net/url" "slices" - "software.sslmate.com/src/certspotter/merkletree" "software.sslmate.com/src/certspotter/cttypes" + "software.sslmate.com/src/certspotter/merkletree" ) type RFC6962Log struct { diff --git a/ctclient/static.go b/ctclient/static.go index 9919395..9242a01 100644 --- a/ctclient/static.go +++ b/ctclient/static.go @@ -22,8 +22,8 @@ import ( "golang.org/x/crypto/cryptobyte" - "software.sslmate.com/src/certspotter/merkletree" "software.sslmate.com/src/certspotter/cttypes" + "software.sslmate.com/src/certspotter/merkletree" ) const ( diff --git a/cttypes/version.go b/cttypes/version.go index b633ddb..b35b574 100644 --- a/cttypes/version.go +++ b/cttypes/version.go @@ -27,4 +27,3 @@ func (v Version) Marshal(b *cryptobyte.Builder) error { func (v *Version) Unmarshal(s *cryptobyte.String) bool { return s.ReadUint8((*uint8)(v)) } - diff --git a/precerts.go b/precerts.go index 21d1807..29755b4 100644 --- a/precerts.go +++ b/precerts.go @@ -27,9 +27,9 @@ var ( ) type PrecertInfo struct { - SameIssuer bool // The pre-certificate was issued from the same CA as the final certificate - Issuer []byte // The pre-certificate's issuer, if different from the final certificate - AKI []byte // The pre-certificate's AKI, if present and different from the final certificate + SameIssuer bool // The pre-certificate was issued from the same CA as the final certificate + Issuer []byte // The pre-certificate's issuer, if different from the final certificate + AKI []byte // The pre-certificate's AKI, if present and different from the final certificate } func ValidatePrecert(precertBytes []byte, tbsBytes []byte) (*PrecertInfo, error) { diff --git a/sequencer/sequencer_test.go b/sequencer/sequencer_test.go index 55a9f88..5f95450 100644 --- a/sequencer/sequencer_test.go +++ b/sequencer/sequencer_test.go @@ -12,8 +12,8 @@ package sequencer import ( "context" "fmt" - "testing" mathrand "math/rand/v2" + "testing" "time" ) @@ -127,7 +127,7 @@ func TestSequencerOutOfOrder(t *testing.T) { for range 4 { go func() { for i := range ch { - time.Sleep(mathrand.N(10*time.Millisecond)) + time.Sleep(mathrand.N(10 * time.Millisecond)) //t.Logf("seq.Add %d", i) err := seq.Add(ctx, i, &i) if err != nil {