From 4f7f40d9322633570863c57848a6ec9349d747cc Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sat, 2 Dec 2006 22:47:02 +0000 Subject: [PATCH] 2006-12-02 Marcus Brinkmann * gpgsm/t-keylist.c (main): Skip unknown keys. Newer versions of GPGSM import more keys than older ones. --- trunk/tests/ChangeLog | 5 +++++ trunk/tests/gpgsm/t-keylist.c | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/trunk/tests/ChangeLog b/trunk/tests/ChangeLog index a25e82b..3db4b94 100644 --- a/trunk/tests/ChangeLog +++ b/trunk/tests/ChangeLog @@ -1,3 +1,8 @@ +2006-12-02 Marcus Brinkmann + + * gpgsm/t-keylist.c (main): Skip unknown keys. Newer versions of + GPGSM import more keys than older ones. + 2005-12-06 Werner Koch * gpg/t-keylist.c (main): Changed for that secondary keys now have diff --git a/trunk/tests/gpgsm/t-keylist.c b/trunk/tests/gpgsm/t-keylist.c index 79a61ea..0f1cf33 100644 --- a/trunk/tests/gpgsm/t-keylist.c +++ b/trunk/tests/gpgsm/t-keylist.c @@ -106,6 +106,15 @@ main (int argc, char **argv) exit (1); } + if (strcmp (key->subkeys->fpr, keys[i].fpr)) + { + fprintf (stderr, "Warning: Skipping unknown key %s\n", + key->subkeys->fpr); + continue; + } + else + printf ("Checking key %s\n", key->subkeys->fpr); + /* Global key flags. */ if (key->revoked) { -- 2.26.2