1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-09 15:28:22 -05:00
forgejo/models/asymkey
KN4CK3R 63904e2f97
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
2024-04-07 15:40:31 +02:00
..
error.go
gpg_key.go
gpg_key_add.go
gpg_key_commit_verification.go models/asymkey: Implement Tag verification 2024-03-30 16:22:05 +01:00
gpg_key_common.go Fix missing 0 prefix of GPG key id (#30245) 2024-04-07 15:40:31 +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-07 15:40:31 +02:00
gpg_key_tag_verification.go models/asymkey: Implement Tag verification 2024-03-30 16:22:05 +01:00
gpg_key_test.go Fix missing 0 prefix of GPG key id (#30245) 2024-04-07 15:40:31 +02:00
gpg_key_verify.go Fix GPG subkey verify (#30193) 2024-04-07 15:40:31 +02:00
main_test.go
ssh_key.go
ssh_key_authorized_keys.go Fix some pending problems (#29985) 2024-03-26 19:04:26 +01:00
ssh_key_authorized_principals.go Fix some pending problems (#29985) 2024-03-26 19:04:26 +01:00
ssh_key_deploy.go
ssh_key_fingerprint.go
ssh_key_object_verification.go models/asymkey: Implement Tag verification 2024-03-30 16:22:05 +01:00
ssh_key_object_verification_test.go models/asymkey: Implement Tag verification 2024-03-30 16:22:05 +01:00
ssh_key_parse.go
ssh_key_principals.go
ssh_key_test.go
ssh_key_verify.go