]> the.earth.li Git - onak.git/blobdiff - keyindex.h
Fix compilation with later versions of Nettle
[onak.git] / keyindex.h
index 247bfda0799f19d982564eddf53ade1314705109..4b10e4517c755ddaab20ab0c6c1eb0d0a5f67ea1 100644 (file)
@@ -1,9 +1,19 @@
 /*
  * keyindex.h - Routines to list an OpenPGP key.
  *
- * Jonathan McDowell <noodles@earth.li>
+ * Copyright 2002-2008 Jonathan McDowell <noodles@earth.li>
  *
- * 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 <https://www.gnu.org/licenses/>.
  */
 
 #ifndef __KEYINDEX_H__
@@ -11,6 +21,7 @@
 
 #include <stdbool.h>
 
+#include "keydb.h"
 #include "keystructs.h"
 
 /**
  *     @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.