Skip to content

Commit cf7cd76

Browse files
committed
rename x509fork to lax509
1 parent e45de5e commit cf7cd76

File tree

8 files changed

+7
-2513
lines changed

8 files changed

+7
-2513
lines changed

internal/scti/chain_validation.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import (
2424
"strings"
2525
"time"
2626

27+
"github.com/transparency-dev/static-ct/internal/lax509"
2728
"github.com/transparency-dev/static-ct/internal/types"
28-
"github.com/transparency-dev/static-ct/internal/x509fork"
2929
"github.com/transparency-dev/static-ct/internal/x509util"
3030
"k8s.io/klog/v2"
3131
)
@@ -236,13 +236,13 @@ func validateChain(rawChain [][]byte, validationOpts ChainValidationOpts) ([]*x5
236236
// - allow pre-certificates and chains with pre-issuers
237237
// - allow certificate without policing them since this is not CT's responsibility
238238
// See /internal/x509fork/README.md for further information.
239-
verifyOpts := x509fork.VerifyOptions{
239+
verifyOpts := lax509.VerifyOptions{
240240
Roots: validationOpts.trustedRoots.CertPool(),
241241
Intermediates: intermediatePool.CertPool(),
242242
KeyUsages: validationOpts.extKeyUsages,
243243
}
244244

245-
verifiedChains, err := x509fork.Verify(cert, verifyOpts)
245+
verifiedChains, err := lax509.Verify(cert, verifyOpts)
246246
if err != nil {
247247
return nil, err
248248
}

internal/x509fork/README.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

internal/x509fork/cert_pool.go

Lines changed: 0 additions & 275 deletions
This file was deleted.

internal/x509fork/cert_pool_test.go

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)