Use C99 uint32_t rather than u_int32_t
[onak.git] / keydb.h
diff --git a/keydb.h b/keydb.h
index b3be902ff3fb4bd37b1d15f84dea03f725b5a4ac..5e511d53f19d5594c263be72092954c4b57c9a00 100644 (file)
--- a/keydb.h
+++ b/keydb.h
@@ -1,9 +1,20 @@
 /*
  * keydb.h - Routines to store and fetch keys.
  *
- * Jonathan McDowell <noodles@earth.li>
+ * Copyright 2002-2004 Jonathan McDowell <noodles@earth.li>
  *
- * Copyright 2002-2004 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, write to the Free Software Foundation, Inc., 51
+ * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
 #ifndef __KEYDB_H__
@@ -104,6 +115,17 @@ struct dbfuncs {
        int (*fetch_key_text)(const char *search,
                        struct openpgp_publickey **publickey);
 
+/**
+ *     fetch_key_skshash - Tries to find the keys from an SKS hash
+ *     @hash: The hash to search for.
+ *     @publickey: A pointer to a structure to return the key in.
+ *
+ *     This function looks for the key that is referenced by the supplied
+ *     SKS hash and returns it.
+ */
+       int (*fetch_key_skshash)(const struct skshash *hash,
+                       struct openpgp_publickey **publickey);
+
 /**
  *     update_keys - Takes a list of public keys and updates them in the DB.
  *     @keys: The keys to update in the DB.