aboutsummaryrefslogtreecommitdiffstats
path: root/tests/run-keylist.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2019-12-13 14:10:51 +0000
committerWerner Koch <[email protected]>2019-12-13 14:11:00 +0000
commit5eeae535ee0df981d8ae8b758b5bb0d190c7fd89 (patch)
tree4e81680772097106b02c7bf7d4584b7a8334f351 /tests/run-keylist.c
parentRevert "doc: Remove UI Server documentation" (diff)
downloadgpgme-5eeae535ee0df981d8ae8b758b5bb0d190c7fd89.tar.gz
gpgme-5eeae535ee0df981d8ae8b758b5bb0d190c7fd89.zip
core: Extend gpgme_user_id_t with uidhash member.
* src/gpgme.h.in (struct _gpgme_user_id): Add field 'uidhash'. * src/key.c (gpgme_key_unref): Free it. * src/keylist.c (keylist_colon_handler): Set it. * tests/run-keylist.c (main): Print it. -- The uidhash value is part of gpg's output since the year 2005. This now adds support to gpgme. The application for uidhash is to select a user id in an edit interactor: Instead of giving the number of the user id, the uidhash value can be be used to avoid tracking the user id numbers. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'tests/run-keylist.c')
-rw-r--r--tests/run-keylist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/run-keylist.c b/tests/run-keylist.c
index d12e3703..23c61108 100644
--- a/tests/run-keylist.c
+++ b/tests/run-keylist.c
@@ -330,6 +330,8 @@ main (int argc, char **argv)
printf (" name: %s\n", uid->name);
if (uid->comment)
printf (" cmmnt: %s\n", uid->comment);
+ if (uid->uidhash)
+ printf (" uidhash: %s\n", uid->uidhash);
printf (" upd: %lu (%u)\n", uid->last_update, uid->origin);
printf (" valid: %s\n",
uid->validity == GPGME_VALIDITY_UNKNOWN? "unknown":