X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=keyindex.h;h=4b10e4517c755ddaab20ab0c6c1eb0d0a5f67ea1;hb=6d60149434eed130c201d4d670ce7b3be5c2866b;hp=81202241d7f616ed32d54a01c0c2ccb62d358930;hpb=0f4971d043c38bae1bfb95201622a1405110f899;p=onak.git diff --git a/keyindex.h b/keyindex.h index 8120224..4b10e45 100644 --- a/keyindex.h +++ b/keyindex.h @@ -1,11 +1,19 @@ /* * keyindex.h - Routines to list an OpenPGP key. * - * Jonathan McDowell + * Copyright 2002-2008 Jonathan McDowell * - * Copyright 2002 Project Purple + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; version 2 of the License. * - * $Id: keyindex.h,v 1.5 2003/06/04 20:57:09 noodles Exp $ + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . */ #ifndef __KEYINDEX_H__ @@ -13,6 +21,7 @@ #include +#include "keydb.h" #include "keystructs.h" /** @@ -20,12 +29,22 @@ * @keys: The keys to display. * @verbose: Should we list sigs as well? * @fingerprint: List the fingerprint? + * @skshash: List the sks hash? * @html: Should we tailor the output for HTML? * * This function takes a list of OpenPGP public keys and displays an index * of them. Useful for debugging or the keyserver Index function. */ -int key_index(struct openpgp_publickey *keys, bool verbose, - bool fingerprint, bool html); +int key_index(struct onak_dbctx *dbctx, + struct openpgp_publickey *keys, bool verbose, + bool fingerprint, bool skshash, bool html); +/** + * mrkey_index - List a set of OpenPGP keys in the MRHKP format. + * @keys: The keys to display. + * + * This function takes a list of OpenPGP public keys and displays a + * machine readable list of them. + */ +int mrkey_index(struct openpgp_publickey *keys); #endif