2 * keyindex.h - Routines to list an OpenPGP key.
4 * Copyright 2002-2008 Jonathan McDowell <noodles@earth.li>
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.
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
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.
20 #ifndef __KEYINDEX_H__
21 #define __KEYINDEX_H__
25 #include "keystructs.h"
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?
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.
38 int key_index(struct openpgp_publickey *keys, bool verbose,
39 bool fingerprint, bool skshash, bool html);
42 * mrkey_index - List a set of OpenPGP keys in the MRHKP format.
43 * @keys: The keys to display.
45 * This function takes a list of OpenPGP public keys and displays a
46 * machine readable list of them.
48 int mrkey_index(struct openpgp_publickey *keys);