Add support for displaying/retrieving by SKS hash to lookup and onak CLI
[onak.git] / keyindex.h
index 81b0287b4eb62a441e618090c5d6e7cfe9f6d11d..c3cb9eca4ed6c847f1896697c35ffa978523113e 100644 (file)
  *     @keys: The keys to display.
  *      @verbose: Should we list sigs as well?
  *     @fingerprint: List the fingerprint?
+ *     @skshash: List the sks hash?
  *     @html: Should we tailor the output for HTML?
  *
  *     This function takes a list of OpenPGP public keys and displays an index
  *     of them. Useful for debugging or the keyserver Index function.
  */
 int key_index(struct openpgp_publickey *keys, bool verbose,
-               bool fingerprint, bool html);
+               bool fingerprint, bool skshash, bool html);
 
 /**
- *     keysigs - Return the sigs on a given OpenPGP signature packet list.
- *     @curll: The current linked list. Can be NULL to create a new list.
- *     @sigs: The signature list we want the sigs on.
+ *     mrkey_index - List a set of OpenPGP keys in the MRHKP format.
+ *     @keys: The keys to display.
  *
- *     Returns a linked list of stats_key elements containing the sigs for the
- *     supplied OpenPGP signature packet list.
+ *     This function takes a list of OpenPGP public keys and displays a
+ *     machine readable list of them.
  */
-struct ll *keysigs(struct ll *curll,
-               struct openpgp_packet_list *sigs);
-
+int mrkey_index(struct openpgp_publickey *keys);
 #endif