X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=onak.c;h=fb14df0f9fcbd2b3cfe808205cc65614c835a2c5;hb=d38e1f468376f8b19b208f2da4d20cb2919875dd;hp=e4f3105ec9f4fd5e45b740b40f7d20e0e8f9af94;hpb=d0fd08fab7a646c47fae21491c8d8f1c2b790a2c;p=onak.git diff --git a/onak.c b/onak.c index e4f3105..fb14df0 100644 --- a/onak.c +++ b/onak.c @@ -68,11 +68,19 @@ void find_keys(char *search, uint64_t keyid, bool ishex, } } +/** + * @brief Context for the keyserver dumping function + */ struct dump_ctx { + /** Keys we've dumped so far to this file */ int count; + /** Maximum keys to dump per file */ int maxcount; + /** File descriptor for the current dump file */ int fd; + /** Number of the current dump file */ int filenum; + /** Base filename to use for dump files */ char *filebase; };