X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/4b8483ae278577a3adc8d84da81d77019704466f..7b7cb978ab032edb192effcd9eac443d8800b565:/keystructs.h diff --git a/keystructs.h b/keystructs.h index 33dba65..42f0971 100644 --- a/keystructs.h +++ b/keystructs.h @@ -4,12 +4,18 @@ * Jonathan McDowell * * Copyright 2002 Project Purple + * + * $Id: keystructs.h,v 1.6 2003/06/04 20:57:09 noodles Exp $ */ #ifndef __KEYSTRUCTS_H__ #define __KEYSTRUCTS_H__ +#include #include +#include + +#include "ll.h" /** * struct openpgp_packet - Stores an OpenPGP packet. @@ -77,4 +83,22 @@ struct openpgp_publickey { struct openpgp_publickey *next; }; +/** + * struct stats_key - holds key details suitable for doing stats on. + * @keyid: The keyid. + * @colour: Used for marking during DFS/BFS. + * @parent: The key that lead us to this one for DFS/BFS. + * @sigs: A linked list of the signatures on this key. + * @gotsigs: A bool indicating if we've initialized the sigs element yet. + */ +struct stats_key { + uint64_t keyid; + int colour; + uint64_t parent; + struct ll *sigs; + struct ll *signs; + bool gotsigs; + bool disabled; +}; + #endif /* __KEYSTRUCTS_H__ */