forgejo/models/asymkey
KN4CK3R d9442b09b5
Fix missing 0 prefix of GPG key id (#30245)
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.

(cherry picked from commit eb505b128c7b9b2459f2a5d20b5740017125178b)

Conflicts:
	- models/asymkey/gpg_key_commit_verification.go
          Ported the change to models/asymkey/gpg_key_object_verification.go
(cherry picked from commit 63904e2f97)
2024-04-08 11:46:40 +02:00
..
error.go
gpg_key.go
gpg_key_add.go
gpg_key_commit_verification.go
gpg_key_common.go Fix missing 0 prefix of GPG key id (#30245) 2024-04-08 11:46:40 +02:00
gpg_key_import.go
gpg_key_list.go
gpg_key_object_verification.go Fix missing 0 prefix of GPG key id (#30245) 2024-04-08 11:46:40 +02:00
gpg_key_tag_verification.go
gpg_key_test.go Fix missing 0 prefix of GPG key id (#30245) 2024-04-08 11:46:40 +02:00
gpg_key_verify.go
main_test.go
ssh_key.go
ssh_key_authorized_keys.go
ssh_key_authorized_principals.go
ssh_key_deploy.go
ssh_key_fingerprint.go
ssh_key_object_verification.go
ssh_key_object_verification_test.go
ssh_key_parse.go
ssh_key_principals.go
ssh_key_test.go
ssh_key_verify.go