gitea/models/asymkey
Giteabot 935bfe6445
Fix missing 0 prefix of GPG key id (#30245) (#30247)
Backport #30245 by @KN4CK3R

Fixes #30235

If the key id "front" byte has a single digit, `%X` is missing the 0
prefix.
` 38D1A3EADDBEA9C` instead of
`038D1A3EADDBEA9C`
When using the `IssuerFingerprint` slice `%X` is enough but I changed it
to `%016X` too to be consistent.

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
2024-04-02 16:13:07 +00:00
..
error.go
gpg_key_add.go Another round of db.DefaultContext refactor (#27103) (#27262) 2023-09-25 19:24:35 +02:00
gpg_key_commit_verification.go Fix missing 0 prefix of GPG key id (#30245) (#30247) 2024-04-02 16:13:07 +00:00
gpg_key_common.go Fix missing 0 prefix of GPG key id (#30245) (#30247) 2024-04-02 16:13:07 +00:00
gpg_key_import.go
gpg_key_test.go Fix missing 0 prefix of GPG key id (#30245) (#30247) 2024-04-02 16:13:07 +00:00
gpg_key_verify.go
gpg_key.go Fix comment permissions (#28213) (#28216) 2023-11-25 23:43:23 +00:00
main_test.go
ssh_key_authorized_keys.go Another round of db.DefaultContext refactor (#27103) (#27262) 2023-09-25 19:24:35 +02:00
ssh_key_authorized_principals.go
ssh_key_commit_verification.go
ssh_key_deploy.go
ssh_key_fingerprint.go Respect SSH.KeygenPath option when calculating ssh key fingerprints (#27536) (#27551) 2023-10-10 07:37:58 +00:00
ssh_key_parse.go
ssh_key_principals.go
ssh_key_test.go
ssh_key_verify.go Retry SSH key verification with additional CRLF if it failed (#28392) (#28464) 2023-12-14 12:50:26 +08:00
ssh_key.go