Apply gofmt

This commit is contained in:
Andrew Ayer 2025-05-07 09:58:04 -04:00
parent 8a655b8566
commit 403d5e2f58
5 changed files with 7 additions and 8 deletions

View File

@ -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 {

View File

@ -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 (

View File

@ -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))
}

View File

@ -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) {

View File

@ -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 {