tests: Print userid signatures in run-keylist
* tests/run-keylist.c (main): Print UID signatures if there are any.
This commit is contained in:
parent
0c1244a2b7
commit
5ba1cbdf39
@ -228,8 +228,10 @@ main (int argc, char **argv)
|
|||||||
{
|
{
|
||||||
gpgme_user_id_t uid;
|
gpgme_user_id_t uid;
|
||||||
gpgme_tofu_info_t ti;
|
gpgme_tofu_info_t ti;
|
||||||
|
gpgme_key_sig_t ks;
|
||||||
int nuids;
|
int nuids;
|
||||||
int nsub;
|
int nsub;
|
||||||
|
int nsigs;
|
||||||
|
|
||||||
printf ("keyid : %s\n", key->subkeys?nonnull (key->subkeys->keyid):"?");
|
printf ("keyid : %s\n", key->subkeys?nonnull (key->subkeys->keyid):"?");
|
||||||
printf ("fpr : %s\n", key->subkeys?nonnull (key->subkeys->fpr):"?");
|
printf ("fpr : %s\n", key->subkeys?nonnull (key->subkeys->fpr):"?");
|
||||||
@ -320,6 +322,14 @@ main (int argc, char **argv)
|
|||||||
printf (" first: %s\n", isotimestr (ti->encrfirst));
|
printf (" first: %s\n", isotimestr (ti->encrfirst));
|
||||||
printf (" last: %s\n", isotimestr (ti->encrlast));
|
printf (" last: %s\n", isotimestr (ti->encrlast));
|
||||||
}
|
}
|
||||||
|
for (nsigs=0, ks=uid->signatures; ks; ks = ks->next, nsigs++)
|
||||||
|
{
|
||||||
|
printf ("signature %d: %s\n", nsigs, nonnull (ks->uid));
|
||||||
|
printf (" keyid: %s\n", nonnull (ks->keyid));
|
||||||
|
printf (" created: %s\n", isotimestr(ks->timestamp));
|
||||||
|
printf (" expires: %s\n", isotimestr(ks->expires));
|
||||||
|
printf (" class: %x\n", ks->sig_class);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
putchar ('\n');
|
putchar ('\n');
|
||||||
|
Loading…
Reference in New Issue
Block a user