X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=keyindex.h;h=c0b29ed5becd268f2ce4137bfce0d92ba42c961e;hb=39627dc8919cce4132cd21528f1e3c6c38aeae85;hp=81b0287b4eb62a441e618090c5d6e7cfe9f6d11d;hpb=4b8483ae278577a3adc8d84da81d77019704466f;p=onak.git diff --git a/keyindex.h b/keyindex.h index 81b0287..c0b29ed 100644 --- a/keyindex.h +++ b/keyindex.h @@ -37,4 +37,23 @@ int key_index(struct openpgp_publickey *keys, bool verbose, struct ll *keysigs(struct ll *curll, struct openpgp_packet_list *sigs); +/** + * sig_keyid - Return the keyid for a given OpenPGP signature packet. + * @packet: The signature packet. + * + * Returns the keyid for the supplied signature packet. + */ +uint64_t sig_keyid(struct openpgp_packet *packet); + +/** + * 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