Skip to content

Commit

Permalink
fix golangci-lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry S <[email protected]>
  • Loading branch information
dmitris committed Jul 10, 2024
1 parent 24fdda7 commit b79fa48
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions test/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import (
"github.com/google/go-containerregistry/pkg/registry"
"github.com/google/go-containerregistry/pkg/v1/random"
"github.com/google/go-containerregistry/pkg/v1/remote"
"github.com/theupdateframework/go-tuf/encrypted"
"github.com/secure-systems-lab/go-securesystemslib/encrypted"

// Initialize all known client auth plugins
_ "k8s.io/client-go/plugin/pkg/client/auth"
Expand Down Expand Up @@ -768,15 +768,3 @@ func generateCertificateBundle(genIntermediate bool) (

return caCertBuf, caPrivKeyBuf, caIntermediateCertBuf, caIntermediatePrivKeyBuf, certBuf, certBundleBuf, nil
}

func ecdsaPrivateKeyToPEM(priv *ecdsa.PrivateKey) ([]byte, error) {
der, err := x509.MarshalECPrivateKey(priv)
if err != nil {
return nil, err
}
block := &pem.Block{
Type: "EC PRIVATE KEY",
Bytes: der,
}
return pem.EncodeToMemory(block), nil
}

0 comments on commit b79fa48

Please sign in to comment.