[git] GPGME - branch, master, updated. gpgme-1.9.0-89-g5ba1cbd
by Andre Heinecke
cvs at cvs.gnupg.org
Thu Dec 7 13:49:41 CET 2017
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".
The branch, master has been updated
via 5ba1cbdf39efd90c7987bfc2bc030b6504e70076 (commit)
from 0c1244a2b7e30ab0610ae70166e1b5d0219782c3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5ba1cbdf39efd90c7987bfc2bc030b6504e70076
Author: Andre Heinecke <aheinecke at intevation.de>
Date: Thu Dec 7 13:47:18 2017 +0100
tests: Print userid signatures in run-keylist
* tests/run-keylist.c (main): Print UID signatures if there
are any.
diff --git a/tests/run-keylist.c b/tests/run-keylist.c
index dd310e5..295251a 100644
--- a/tests/run-keylist.c
+++ b/tests/run-keylist.c
@@ -228,8 +228,10 @@ main (int argc, char **argv)
{
gpgme_user_id_t uid;
gpgme_tofu_info_t ti;
+ gpgme_key_sig_t ks;
int nuids;
int nsub;
+ int nsigs;
printf ("keyid : %s\n", key->subkeys?nonnull (key->subkeys->keyid):"?");
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 (" 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');
-----------------------------------------------------------------------
Summary of changes:
tests/run-keylist.c | 10 ++++++++++
1 file changed, 10 insertions(+)
hooks/post-receive
--
GnuPG Made Easy
http://git.gnupg.org
More information about the Gnupg-commits
mailing list