]> the.earth.li Git - onak.git/blobdiff - cleankey.h
Pass a keydb context into cleankeys in preparation for signature checks
[onak.git] / cleankey.h
index 22a7e45c94c58b65f5c8ecc7558f90afe7de1b8c..4671d207b15cbfa15fac511386d93626e9d2c7ae 100644 (file)
@@ -19,6 +19,7 @@
 #ifndef __CLEANKEY_H__
 #define __CLEANKEY_H__
 
+#include "keydb.h"
 #include "keystructs.h"
 
 #define ONAK_CLEAN_CHECK_SIGHASH       (1 << 0)
@@ -29,6 +30,7 @@
 
 /**
  *     cleankeys - Apply all available cleaning options on a list of keys.
+ *     @dbctx: A database context suitable for looking up signing keys
  *     @publickey: The list of keys to clean.
  *     @policies: The cleaning policies to apply.
  *
@@ -38,6 +40,7 @@
  *     made, otherwise the number of keys cleaned. Note that some options
  *     may result in keys being removed entirely from the list.
  */
-int cleankeys(struct openpgp_publickey **keys, uint64_t policies);
+int cleankeys(struct onak_dbctx *dbctx, struct openpgp_publickey **keys,
+               uint64_t policies);
 
 #endif