From e184a11f94e2d41cd9266484542631bec23628b5 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 15 Apr 2014 16:40:48 +0200 Subject: 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. --- g10/photoid.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'g10/photoid.c') 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); -- cgit v1.2.3