Only seed database for Debian install if we're using default config
[onak.git] / keyindex.h
1 /*
2  * keyindex.h - Routines to list an OpenPGP key.
3  *
4  * Jonathan McDowell <noodles@earth.li>
5  *
6  * Copyright 2002 Project Purple
7  */
8
9 #ifndef __KEYINDEX_H__
10 #define __KEYINDEX_H__
11
12 #include <stdbool.h>
13
14 #include "keystructs.h"
15
16 /**
17  *      key_index - List a set of OpenPGP keys.
18  *      @keys: The keys to display.
19  *      @verbose: Should we list sigs as well?
20  *      @fingerprint: List the fingerprint?
21  *      @html: Should we tailor the output for HTML?
22  *
23  *      This function takes a list of OpenPGP public keys and displays an index
24  *      of them. Useful for debugging or the keyserver Index function.
25  */
26 int key_index(struct openpgp_publickey *keys, bool verbose,
27                 bool fingerprint, bool html);
28
29 /**
30  *      mrkey_index - List a set of OpenPGP keys in the MRHKP format.
31  *      @keys: The keys to display.
32  *
33  *      This function takes a list of OpenPGP public keys and displays a
34  *      machine readable list of them.
35  */
36 int mrkey_index(struct openpgp_publickey *keys);
37 #endif