]> the.earth.li Git - onak.git/blobdiff - keystructs.h
cscvs to tla changeset 117
[onak.git] / keystructs.h
index 10dfcc627a722f2dab4abedbeb5be4d89e343e97..24799eb5101ffdcb9dbf4de7d84c6f753dad4caf 100644 (file)
@@ -4,14 +4,19 @@
  * Jonathan McDowell <noodles@earth.li>
  *
  * Copyright 2002 Project Purple
+ *
+ * $Id: keystructs.h,v 1.7 2003/06/08 21:11:01 noodles Exp $
  */
 
 #ifndef __KEYSTRUCTS_H__
 #define __KEYSTRUCTS_H__
 
+#include <inttypes.h>
 #include <stdbool.h>
 #include <stdlib.h>
 
+#include "ll.h"
+
 /**
  *     struct openpgp_packet - Stores an OpenPGP packet.
  *     @tag: The packet tag (ie type).
@@ -78,4 +83,25 @@ 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.
+ *     @disabled: If we shouldn't consider the key in calculations.
+ *     @revoked: If the key is revoked (and shouldn't be considered).
+ */
+struct stats_key {
+       uint64_t keyid;
+       int colour;
+       uint64_t parent;
+       struct ll *sigs;
+       struct ll *signs;
+       bool gotsigs;
+       bool disabled;
+       bool revoked;
+};
+
 #endif /* __KEYSTRUCTS_H__ */