X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/1d268f8b7df33d0985b63f7f99b9e3ed597a9982..42d43e0ec08e249cecf74ec448cb6405b3c89d84:/photoid.h?ds=sidebyside diff --git a/photoid.h b/photoid.h new file mode 100644 index 0000000..03bbf32 --- /dev/null +++ b/photoid.h @@ -0,0 +1,27 @@ +/* + * photoid.h - Routines for OpenPGP id photos. + * + * Jonathan McDowell + * + * Copyright 2004 Project Purple + * + * $Id: photoid.h,v 1.1 2004/05/27 01:25:37 noodles Exp $ + */ + +#ifndef __PHOTOID_H__ +#define __PHOTOID_H__ + +#include "keystructs.h" + +/** + * 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. + * + * 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. + */ +struct openpgp_packet *getphoto(struct openpgp_publickey *key, int index); + +#endif /* __PHOTOID_H__ */