diff options
author | Werner Koch <wk@gnupg.org> | 2014-04-15 16:40:48 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2014-04-17 21:44:09 +0200 |
commit | e184a11f94e2d41cd9266484542631bec23628b5 (patch) | |
tree | 3be1b428fd499e94afa9fda630fb06fdb7c941e1 /g10/photoid.c | |
parent | common: Add z-base-32 encoder. (diff) | |
download | gnupg2-e184a11f94e2d41cd9266484542631bec23628b5.tar.xz gnupg2-e184a11f94e2d41cd9266484542631bec23628b5.zip |
gpg: New %U expando for the photo viewer.
* g10/photoid.c (show_photos): Set namehash.
* g10/misc.c (pct_expando): Add "%U" expando.
--
This makes is possible to extract all photos ids from a key to
different files.
Diffstat (limited to 'g10/photoid.c')
-rw-r--r-- | g10/photoid.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/photoid.c b/g10/photoid.c index 829d36c9e..f6e625a00 100644 --- a/g10/photoid.c +++ b/g10/photoid.c @@ -305,6 +305,8 @@ show_photos(const struct user_attribute *attrs, int count, args.pk = pk; args.validity_info = get_validity_info (pk, uid); args.validity_string = get_validity_string (pk, uid); + namehash_from_uid (uid); + args.namehash = uid->namehash; if (pk) keyid_from_pk (pk, kid); |