X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=cleankey.h;h=4671d207b15cbfa15fac511386d93626e9d2c7ae;hb=6565bed3065d1751abf469da1a85884d9ddde759;hp=22a7e45c94c58b65f5c8ecc7558f90afe7de1b8c;hpb=9ce8c6ced68d45b462abb4c6531b6476f4d1e681;p=onak.git diff --git a/cleankey.h b/cleankey.h index 22a7e45..4671d20 100644 --- a/cleankey.h +++ b/cleankey.h @@ -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