1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

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.

(cherry picked from commit e184a11f94)

Resolved conflicts:
	g10/photoid.c - whitespaces
This commit is contained in:
Werner Koch 2014-04-15 16:40:48 +02:00
parent 2a415c47ea
commit d7750a15d5
4 changed files with 25 additions and 6 deletions

View file

@ -297,11 +297,12 @@ show_photos(const struct user_attribute *attrs,
u32 len;
u32 kid[2]={0,0};
memset(&args,0,sizeof(args));
args.pk=pk;
args.sk=sk;
args.validity_info=get_validity_info(pk,uid);
args.validity_string=get_validity_string(pk,uid);
memset (&args, 0, sizeof(args));
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);