X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=photoid.h;fp=photoid.h;h=49b685efce1b7c36248142bd205c4047c4d31fb8;hb=b3e534f945ae56605bc5309e7c5af020c797a69b;hp=03bbf32468098ba6f47884e82d060773db4541e4;hpb=ec10586ae774074490665d5baeef8488861904ee;p=onak.git diff --git a/photoid.h b/photoid.h index 03bbf32..49b685e 100644 --- a/photoid.h +++ b/photoid.h @@ -5,7 +5,7 @@ * * Copyright 2004 Project Purple * - * $Id: photoid.h,v 1.1 2004/05/27 01:25:37 noodles Exp $ + * $Id: photoid.h,v 1.2 2004/05/27 21:58:18 noodles Exp $ */ #ifndef __PHOTOID_H__ @@ -17,11 +17,15 @@ * getphoto - returns an OpenPGP packet containing a photo id. * @key: The key to return the photo id from. * @index: The index of the photo to return. + * @photo: The photo data. + * @length: The length of the photo data. * - * This function returns the OpenPGP packet containing a photo id from a - * supplied key. index specifies which photo id should be returned. If - * there's no such photo id NULL is returned. + * This function returns the photo data contained in a supplied key. + * index specifies which photo id should be returned. If there's no such + * photo id NULL is returned. The returned data pointer refers to the key + * data supplied rather than a copy of it. */ -struct openpgp_packet *getphoto(struct openpgp_publickey *key, int index); +int getphoto(struct openpgp_publickey *key, int index, unsigned char **photo, + size_t *length); #endif /* __PHOTOID_H__ */