X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=keydb.h;h=9a248e3f4cc38d790d9320fdcad60576453025ba;hb=8e58a1769ce5e492dd68904dfc81b6e077fc2a3a;hp=ca8fdf71f1fc97f49efb20dd52360c4f71582ba6;hpb=4b8483ae278577a3adc8d84da81d77019704466f;p=onak.git 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.