Update Debian Vcs-* fields to point to git repository
[onak.git] / keyindex.h
1 /*
2  * keyindex.h - Routines to list an OpenPGP key.
3  *
4  * Copyright 2002-2008 Jonathan McDowell <noodles@earth.li>
5  *
6  * This program is free software: you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License as published by the Free
8  * Software Foundation; version 2 of the License.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along with
16  * this program; if not, write to the Free Software Foundation, Inc., 51
17  * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19
20 #ifndef __KEYINDEX_H__
21 #define __KEYINDEX_H__
22
23 #include <stdbool.h>
24
25 #include "keystructs.h"
26
27 /**
28  *      key_index - List a set of OpenPGP keys.
29  *      @keys: The keys to display.
30  *      @verbose: Should we list sigs as well?
31  *      @fingerprint: List the fingerprint?
32  *      @skshash: List the sks hash?
33  *      @html: Should we tailor the output for HTML?
34  *
35  *      This function takes a list of OpenPGP public keys and displays an index
36  *      of them. Useful for debugging or the keyserver Index function.
37  */
38 int key_index(struct openpgp_publickey *keys, bool verbose,
39                 bool fingerprint, bool skshash, bool html);
40
41 /**
42  *      mrkey_index - List a set of OpenPGP keys in the MRHKP format.
43  *      @keys: The keys to display.
44  *
45  *      This function takes a list of OpenPGP public keys and displays a
46  *      machine readable list of them.
47  */
48 int mrkey_index(struct openpgp_publickey *keys);
49 #endif