tests: Use long key IDs

Short key IDs are not secure, and may be rejected by OpenPGP
implementations.  See https://evil32.com/

Signed-off-by: Justus Winter <justus@sequoia-pgp.org>
This commit is contained in:
Justus Winter 2024-02-16 16:23:49 +01:00
parent c7260105db
commit 9b5a373adb
No known key found for this signature in database
GPG Key ID: 686F55B4AB2B3386

View File

@ -183,7 +183,7 @@ test_signature_lookup (TestFixture *fixture, gconstpointer user_data)
/* Lookup abbreviated key ID. */ /* Lookup abbreviated key ID. */
signature_index = 999999; signature_index = 999999;
signature_found signature_found
= ostree_gpg_verify_result_lookup (fixture->result, fingerprint + 32, &signature_index); = ostree_gpg_verify_result_lookup (fixture->result, fingerprint + 24, &signature_index);
g_assert_true (signature_found); g_assert_true (signature_found);
g_assert_cmpint (signature_index, ==, expected_signature_index); g_assert_cmpint (signature_index, ==, expected_signature_index);