From 9b5a373adb43598050d44b8876b49fe96cc1a5c3 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Fri, 16 Feb 2024 16:23:49 +0100 Subject: [PATCH] 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 --- tests/test-gpg-verify-result.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-gpg-verify-result.c b/tests/test-gpg-verify-result.c index e7171a89..5844c668 100644 --- a/tests/test-gpg-verify-result.c +++ b/tests/test-gpg-verify-result.c @@ -183,7 +183,7 @@ test_signature_lookup (TestFixture *fixture, gconstpointer user_data) /* Lookup abbreviated key ID. */ signature_index = 999999; 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_cmpint (signature_index, ==, expected_signature_index);