X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/4b8483ae278577a3adc8d84da81d77019704466f..8e58a1769ce5e492dd68904dfc81b6e077fc2a3a:/keydb.h diff --git a/keydb.h b/keydb.h index ca8fdf7..9a248e3 100644 --- a/keydb.h +++ b/keydb.h @@ -65,6 +65,16 @@ int store_key(struct openpgp_publickey *publickey); */ int delete_key(uint64_t keyid); +/** + * fetch_key_text - Trys to find the keys that contain the supplied text. + * @search: The text to search for. + * @publickey: A pointer to a structure to return the key in. + * + * This function searches for the supplied text and returns the keys that + * contain it. + */ +int fetch_key_text(const char *search, struct openpgp_publickey **publickey); + /** * keyid2uid - Takes a keyid and returns the primary UID for it. * @keyid: The keyid to lookup.