summaryrefslogtreecommitdiffstats
path: root/routers/api
diff options
context:
space:
mode:
authorChongyi Zheng <git@zcy.dev>2023-08-29 16:19:40 -0400
committerGitHub <noreply@github.com>2023-08-29 22:19:40 +0200
commit2d9249b6d9b57dea57b70357432bda945504c4b5 (patch)
tree71464d3adbf21fa08f37d228413850a1ea312c0d /routers/api
parent438c7642c79c44576302f9503cf14d39b3414956 (diff)
downloadgitea-2d9249b6d9b57dea57b70357432bda945504c4b5.tar.gz
gitea-2d9249b6d9b57dea57b70357432bda945504c4b5.zip
Replace deprecated `elliptic.Marshal` (#26800)
In PR #26786, the Go version for golangci-lint is bumped to 1.21. This causes the following error: ``` models/migrations/v1_16/v210.go:132:23: SA1019: elliptic.Marshal has been deprecated since Go 1.21: for ECDH, use the crypto/ecdh package. This function returns an encoding equivalent to that of PublicKey.Bytes in crypto/ecdh. (staticcheck) PublicKey: elliptic.Marshal(elliptic.P256(), parsed.PubKey.X, parsed.PubKey.Y), ``` The change now uses [func (*PublicKey) ECDH](https://pkg.go.dev/crypto/ecdsa#PublicKey.ECDH), which is added in Go 1.20.
Diffstat (limited to 'routers/api')
0 files changed, 0 insertions, 0 deletions