Skip to content

Commit 3481261

Browse files
authored
c-t-go-away: drop dependency on c-t-go/tls, and therefore c-t-go (#202)
* copy what we need of tls from c-t-go * remove everything which is not ECDSA except default values * migrate from c-t-go/tls to local tls * go mod tidy, c-t-go-away * add int size checks
1 parent 31daebd commit 3481261

File tree

10 files changed

+1266
-13
lines changed

10 files changed

+1266
-13
lines changed

go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ require (
99
github.com/RobinUS2/golang-moving-average v1.0.0
1010
github.com/gdamore/tcell/v2 v2.8.1
1111
github.com/golang/mock v1.7.0-rc.1
12-
github.com/google/certificate-transparency-go v1.3.1
1312
github.com/google/go-cmp v0.7.0
1413
github.com/kylelemons/godebug v1.1.0
1514
github.com/prometheus/client_golang v1.21.1

go.sum

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -786,8 +786,6 @@ github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEW
786786
github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
787787
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
788788
github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
789-
github.com/google/certificate-transparency-go v1.3.1 h1:akbcTfQg0iZlANZLn0L9xOeWtyCIdeoYhKrqi5iH3Go=
790-
github.com/google/certificate-transparency-go v1.3.1/go.mod h1:gg+UQlx6caKEDQ9EElFOujyxEQEfOiQzAt6782Bvi8k=
791789
github.com/google/flatbuffers v2.0.8+incompatible/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8=
792790
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
793791
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
@@ -976,12 +974,6 @@ github.com/transparency-dev/formats v0.0.0-20250127084410-134797944be6 h1:TVUG0R
976974
github.com/transparency-dev/formats v0.0.0-20250127084410-134797944be6/go.mod h1:tSjZBSQ1ZMxgaOMppnyw48SbTDL947PD/8KYbvrx+lE=
977975
github.com/transparency-dev/merkle v0.0.2 h1:Q9nBoQcZcgPamMkGn7ghV8XiTZ/kRxn1yCG81+twTK4=
978976
github.com/transparency-dev/merkle v0.0.2/go.mod h1:pqSy+OXefQ1EDUVmAJ8MUhHB9TXGuzVAT58PqBoHz1A=
979-
github.com/transparency-dev/trillian-tessera v0.1.1-0.20250314143707-b7c8fb6d4491 h1:HZg3ZJqnMJ2X+t+2jMP2GY1vXrES6R1YtADIURAxb0o=
980-
github.com/transparency-dev/trillian-tessera v0.1.1-0.20250314143707-b7c8fb6d4491/go.mod h1:uvyZ7WGpaRDPY+4Lme+s1vEUOluYevTYzrDg9j05cYU=
981-
github.com/transparency-dev/trillian-tessera v0.1.1-0.20250317142235-ed0b4e51d70e h1:wFX4UhEkJEeId3obw8VH9soCyjmLSYzUeYDOsUSYKjE=
982-
github.com/transparency-dev/trillian-tessera v0.1.1-0.20250317142235-ed0b4e51d70e/go.mod h1:uvyZ7WGpaRDPY+4Lme+s1vEUOluYevTYzrDg9j05cYU=
983-
github.com/transparency-dev/trillian-tessera v0.1.1-0.20250317143907-6f25ba6ca3a6 h1:QRFg1XDm9MM1SRfMdUFonaU7NIMQgRjQpqke8UcGNmY=
984-
github.com/transparency-dev/trillian-tessera v0.1.1-0.20250317143907-6f25ba6ca3a6/go.mod h1:uvyZ7WGpaRDPY+4Lme+s1vEUOluYevTYzrDg9j05cYU=
985977
github.com/transparency-dev/trillian-tessera v0.1.1-0.20250317151915-e61e2d86f685 h1:Cu1sKlj37BnhBybTQ5V1/zgqPQHlBEXIyLiAK+rVlvA=
986978
github.com/transparency-dev/trillian-tessera v0.1.1-0.20250317151915-e61e2d86f685/go.mod h1:uvyZ7WGpaRDPY+4Lme+s1vEUOluYevTYzrDg9j05cYU=
987979
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=

internal/scti/handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ import (
2929
"sync"
3030
"time"
3131

32-
"github.com/google/certificate-transparency-go/tls"
3332
"github.com/prometheus/client_golang/prometheus"
3433
"github.com/prometheus/client_golang/prometheus/promauto"
3534
"github.com/transparency-dev/static-ct/internal/types"
35+
"github.com/transparency-dev/static-ct/internal/types/tls"
3636
"github.com/transparency-dev/static-ct/internal/x509util"
3737
"github.com/transparency-dev/static-ct/modules/dedup"
3838
tessera "github.com/transparency-dev/trillian-tessera"

internal/scti/signatures.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ import (
2323
"fmt"
2424
"time"
2525

26-
"github.com/google/certificate-transparency-go/tls"
2726
tfl "github.com/transparency-dev/formats/log"
2827
"github.com/transparency-dev/static-ct/internal/types"
28+
"github.com/transparency-dev/static-ct/internal/types/tls"
2929
"golang.org/x/mod/sumdb/note"
3030
)
3131

internal/scti/signatures_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ import (
2424
"testing"
2525
"time"
2626

27-
"github.com/google/certificate-transparency-go/tls"
2827
"github.com/kylelemons/godebug/pretty"
2928
"github.com/transparency-dev/static-ct/internal/testdata"
3029
"github.com/transparency-dev/static-ct/internal/types"
30+
"github.com/transparency-dev/static-ct/internal/types/tls"
3131
"github.com/transparency-dev/static-ct/internal/x509util"
3232
)
3333

internal/types/rfc6962.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"encoding/base64"
88
"fmt"
99

10-
"github.com/google/certificate-transparency-go/tls"
10+
"github.com/transparency-dev/static-ct/internal/types/tls"
1111
)
1212

1313
///////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)