X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=keyindex.h;fp=keyindex.h;h=5b567bcf966af79423450bb00fe45e9168e146e0;hb=8e58a1769ce5e492dd68904dfc81b6e077fc2a3a;hp=81b0287b4eb62a441e618090c5d6e7cfe9f6d11d;hpb=4b8483ae278577a3adc8d84da81d77019704466f;p=onak.git diff --git a/keyindex.h b/keyindex.h index 81b0287..5b567bc 100644 --- a/keyindex.h +++ b/keyindex.h @@ -37,4 +37,15 @@ int key_index(struct openpgp_publickey *keys, bool verbose, struct ll *keysigs(struct ll *curll, struct openpgp_packet_list *sigs); +/** + * keyuids - Takes a key and returns an array of its UIDs + * @key: The key to get the uids of. + * @primary: A pointer to store the primary UID in. + * + * keyuids takes a public key structure and builds an array of the UIDs + * on the key. It also attempts to work out the primary UID and returns a + * separate pointer to that particular element of the array. + */ +char **keyuids(struct openpgp_publickey *key, char **primary); + #endif