Skip to content

Commit

Permalink
Ignore linter
Browse files Browse the repository at this point in the history
Signed-off-by: Hayden Blauzvern <[email protected]>
  • Loading branch information
haydentherapper committed Sep 26, 2023
1 parent cd3af98 commit a8c9221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pki/ssh/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (k PublicKey) Identities() ([]identity.Identity, error) {
}
ecdsaPubKey := new(ecdsa.PublicKey)
ecdsaPubKey.Curve = elliptic.P256()
ecdsaPubKey.X, ecdsaPubKey.Y = elliptic.Unmarshal(ecdsaPubKey.Curve, w.KeyBytes)
ecdsaPubKey.X, ecdsaPubKey.Y = elliptic.Unmarshal(ecdsaPubKey.Curve, w.KeyBytes) //lint:ignore SA1019

Check failure on line 168 in pkg/pki/ssh/ssh.go

View workflow job for this annotation

GitHub Actions / lint

SA1019: elliptic.Unmarshal has been deprecated since Go 1.21: for ECDH, use the crypto/ecdh package. This function accepts an encoding equivalent to that of the NewPublicKey methods in crypto/ecdh. (staticcheck)
if ecdsaPubKey.X == nil || ecdsaPubKey.Y == nil {
return nil, errors.New("ssh: invalid curve point")
}
Expand Down

0 comments on commit a8c9221

Please sign in to comment.