diff options
author | Werner Koch <wk@gnupg.org> | 2019-12-13 15:10:51 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2019-12-13 15:11:00 +0100 |
commit | 5eeae535ee0df981d8ae8b758b5bb0d190c7fd89 (patch) | |
tree | 4e81680772097106b02c7bf7d4584b7a8334f351 /src/key.c | |
parent | 7e7eaf43424556c3c25edc7b67e760ab60de55ce (diff) | |
download | gpgme-5eeae535ee0df981d8ae8b758b5bb0d190c7fd89.tar.gz |
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 <wk@gnupg.org>
Diffstat (limited to 'src/key.c')
-rw-r--r-- | src/key.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -385,6 +385,7 @@ gpgme_key_unref (gpgme_key_t key) } free (uid->address); + free (uid->uidhash); free (uid); uid = next_uid; } |