X-Git-Url: http://the.earth.li/gitweb/?p=onak.git;a=blobdiff_plain;f=keyindex.h;h=4b10e4517c755ddaab20ab0c6c1eb0d0a5f67ea1;hp=81b0287b4eb62a441e618090c5d6e7cfe9f6d11d;hb=de18b56efecadc4b5d2473904828db9c08cd2162;hpb=4b8483ae278577a3adc8d84da81d77019704466f diff --git a/keyindex.h b/keyindex.h index 81b0287..4b10e45 100644 --- a/keyindex.h +++ b/keyindex.h @@ -1,9 +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. + * + * 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__ @@ -11,6 +21,7 @@ #include +#include "keydb.h" #include "keystructs.h" /** @@ -18,23 +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); /** - * keysigs - Return the sigs on a given OpenPGP signature packet list. - * @curll: The current linked list. Can be NULL to create a new list. - * @sigs: The signature list we want the sigs on. + * mrkey_index - List a set of OpenPGP keys in the MRHKP format. + * @keys: The keys to display. * - * Returns a linked list of stats_key elements containing the sigs for the - * supplied OpenPGP signature packet list. + * This function takes a list of OpenPGP public keys and displays a + * machine readable list of them. */ -struct ll *keysigs(struct ll *curll, - struct openpgp_packet_list *sigs); - +int mrkey_index(struct openpgp_publickey *keys); #endif