cscvs to tla changeset 85
[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  * $Id: keyindex.h,v 1.6 2003/06/08 19:04:32 noodles Exp $
9  */
10
11 #ifndef __KEYINDEX_H__
12 #define __KEYINDEX_H__
13
14 #include <stdbool.h>
15
16 #include "keystructs.h"
17
18 /**
19  *      key_index - List a set of OpenPGP keys.
20  *      @keys: The keys to display.
21  *      @verbose: Should we list sigs as well?
22  *      @fingerprint: List the fingerprint?
23  *      @html: Should we tailor the output for HTML?
24  *
25  *      This function takes a list of OpenPGP public keys and displays an index
26  *      of them. Useful for debugging or the keyserver Index function.
27  */
28 int key_index(struct openpgp_publickey *keys, bool verbose,
29                 bool fingerprint, bool html);
30
31 /**
32  *      mrkey_index - List a set of OpenPGP keys in the MRHKP format.
33  *      @keys: The keys to display.
34  *
35  *      This function takes a list of OpenPGP public keys and displays a
36  *      machine readable list of them.
37  */
38 int mrkey_index(struct openpgp_publickey *keys);
39 #endif