aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpg/t-keylist.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2005-12-06 16:30:21 +0000
committerWerner Koch <[email protected]>2005-12-06 16:30:21 +0000
commita1e484f9eac9dfc8e29fdd4955bf8b422ae52061 (patch)
tree2cc2924c13c40f3107e453fb2f39bdb08591514e /tests/gpg/t-keylist.c
parent2005-11-27 Marcus Brinkmann <[email protected]> (diff)
downloadgpgme-a1e484f9eac9dfc8e29fdd4955bf8b422ae52061.tar.gz
gpgme-a1e484f9eac9dfc8e29fdd4955bf8b422ae52061.zip
* Fixed a bug in that the fingerprints of subkeys are not available.
* Clarified usage of the SECRET flag in key listings. It is now reset for stub keys.
Diffstat (limited to 'tests/gpg/t-keylist.c')
-rw-r--r--tests/gpg/t-keylist.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/gpg/t-keylist.c b/tests/gpg/t-keylist.c
index b7354904..c8c71d0c 100644
--- a/tests/gpg/t-keylist.c
+++ b/tests/gpg/t-keylist.c
@@ -361,10 +361,9 @@ main (int argc, char **argv)
key->subkeys->next->keyid, keys[i].sec_keyid );
exit (1);
}
- if (key->subkeys->next->fpr)
+ if (!key->subkeys->next->fpr)
{
- fprintf (stderr, "Secondary key has unexpectedly a fingerprint: %s\n",
- key->subkeys->next->fpr);
+ fprintf (stderr, "Secondary key has unexpectedly no fingerprint\n");
exit (1);
}
if (key->subkeys->next->expires)