mirror of
1
Fork 0
forgejo/models/asymkey
Giteabot 4ed431531b
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>
(cherry picked from commit 935bfe6445f55f1011782eb93492dc55839b2d16)
2024-04-03 12:37:28 +02:00
..
error.go
gpg_key.go Fix comment permissions (#28213) (#28216) 2023-11-26 13:56:50 +01:00
gpg_key_add.go
gpg_key_commit_verification.go Fix missing 0 prefix of GPG key id (#30245) (#30247) 2024-04-03 12:37:28 +02:00
gpg_key_common.go Fix missing 0 prefix of GPG key id (#30245) (#30247) 2024-04-03 12:37:28 +02:00
gpg_key_import.go
gpg_key_test.go Fix missing 0 prefix of GPG key id (#30245) (#30247) 2024-04-03 12:37:28 +02:00
gpg_key_verify.go
main_test.go
ssh_key.go
ssh_key_authorized_keys.go [GITEA] Make atomic ssh keys replacement robust 2023-11-13 14:06:31 +01:00
ssh_key_authorized_principals.go [GITEA] Make atomic ssh keys replacement robust 2023-11-13 14:06:31 +01:00
ssh_key_commit_verification.go
ssh_key_deploy.go
ssh_key_fingerprint.go
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-22 12:05:11 +01:00