mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-12 21:58:50 +01:00
cd2450f41f
* misc.c (pct_expando): Use the seckey for %k/%K if the pubkey is not available. * photoid.h, photoid.c (show_photos): Include the seckey in case a user tries to view a photo on a secret key, and change all callers in keyedit.c (menu_showphoto), keylist.c (list_keyblock_print), and photoid.c (generate_photo_id).
15 lines
401 B
C
15 lines
401 B
C
/* Photo ID functions */
|
|
|
|
#ifndef _PHOTOID_H_
|
|
#define _PHOTOID_H_
|
|
|
|
#include "packet.h"
|
|
|
|
PKT_user_id *generate_photo_id(PKT_public_key *pk);
|
|
int parse_image_header(const struct user_attribute *attr,byte *type,u32 *len);
|
|
char *image_type_to_string(byte type,int style);
|
|
void show_photos(const struct user_attribute *attrs,
|
|
int count,PKT_public_key *pk,PKT_secret_key *sk);
|
|
|
|
#endif /* !_PHOTOID_H_ */
|