cscvs to tla changeset 2
[onak.git] / keydb.h
diff --git a/keydb.h b/keydb.h
index ca8fdf71f1fc97f49efb20dd52360c4f71582ba6..9a248e3f4cc38d790d9320fdcad60576453025ba 100644 (file)
--- 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.