X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=keystructs.h;h=ec1d55556719b1f758c2d660095bdc1506c6a47c;hb=5913c95f2c7abf4c3cb06e27d384d80fb4c83547;hp=10dfcc627a722f2dab4abedbeb5be4d89e343e97;hpb=f86410ff8aa00dc5c584541f387f77515a8cbd89;p=onak.git diff --git a/keystructs.h b/keystructs.h index 10dfcc6..ec1d555 100644 --- a/keystructs.h +++ b/keystructs.h @@ -9,9 +9,12 @@ #ifndef __KEYSTRUCTS_H__ #define __KEYSTRUCTS_H__ +#include #include #include +#include "ll.h" + /** * struct openpgp_packet - Stores an OpenPGP packet. * @tag: The packet tag (ie type). @@ -78,4 +81,20 @@ 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; + bool gotsigs; +}; + #endif /* __KEYSTRUCTS_H__ */