2 * photoid.h - Routines for OpenPGP id photos.
4 * Jonathan McDowell <noodles@earth.li>
6 * Copyright 2004 Project Purple
12 #include "keystructs.h"
15 * getphoto - returns an OpenPGP packet containing a photo id.
16 * @key: The key to return the photo id from.
17 * @index: The index of the photo to return.
18 * @photo: The photo data.
19 * @length: The length of the photo data.
21 * This function returns the photo data contained in a supplied key.
22 * index specifies which photo id should be returned. If there's no such
23 * photo id NULL is returned. The returned data pointer refers to the key
24 * data supplied rather than a copy of it.
26 int getphoto(struct openpgp_publickey *key, int index, unsigned char **photo,
29 #endif /* __PHOTOID_H__ */