]> the.earth.li Git - onak.git/blob - keyindex.h
Add initial Travis CI configuration for GitHub CI builds
[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 "keydb.h"
26 #include "keystructs.h"
27
28 /**
29  *      key_index - List a set of OpenPGP keys.
30  *      @keys: The keys to display.
31  *      @verbose: Should we list sigs as well?
32  *      @fingerprint: List the fingerprint?
33  *      @skshash: List the sks hash?
34  *      @html: Should we tailor the output for HTML?
35  *
36  *      This function takes a list of OpenPGP public keys and displays an index
37  *      of them. Useful for debugging or the keyserver Index function.
38  */
39 int key_index(struct onak_dbctx *dbctx,
40                 struct openpgp_publickey *keys, bool verbose,
41                 bool fingerprint, bool skshash, bool html);
42
43 /**
44  *      mrkey_index - List a set of OpenPGP keys in the MRHKP format.
45  *      @keys: The keys to display.
46  *
47  *      This function takes a list of OpenPGP public keys and displays a
48  *      machine readable list of them.
49  */
50 int mrkey_index(struct openpgp_publickey *keys);
51 #endif