summaryrefslogtreecommitdiffstats
path: root/g10/photoid.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2014-04-15 16:40:48 +0200
committerWerner Koch <wk@gnupg.org>2014-04-17 21:44:09 +0200
commite184a11f94e2d41cd9266484542631bec23628b5 (patch)
tree3be1b428fd499e94afa9fda630fb06fdb7c941e1 /g10/photoid.c
parentcommon: Add z-base-32 encoder. (diff)
downloadgnupg2-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.c2
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);