X-Git-Url: https://the.earth.li/gitweb/?p=onak.git;a=blobdiff_plain;f=keyindex.h;h=4b10e4517c755ddaab20ab0c6c1eb0d0a5f67ea1;hp=110d234ed0cdde2a0fd818aaf2be2eec50844a0a;hb=76f079e5ebdb34acaaa2462a8d915ee06d3c8425;hpb=576754568dc383e78065e88e05eeb2d078524f9c diff --git a/keyindex.h b/keyindex.h index 110d234..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.6 2003/06/08 19:04:32 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,13 +29,15 @@ * @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.