--- pgp/src/keymaint.h 2018/04/24 16:39:23 1.1.1.1 +++ pgp/src/keymaint.h 2018/04/24 16:42:22 1.1.1.4 @@ -1,18 +1,30 @@ #ifndef KEYMAINT_H #define KEYMAINT_H -int maint_update(char *ringfile); +#include "pgp.h" /* For KEYFRAGSIZE */ + +/* Build the singly-linked list in the obvious way. */ +struct newkey { + byte keyID[KEYFRAGSIZE]; + struct newkey *next; +}; +void free_newkeys(struct newkey *nkeys); +int ismember_newkeys(byte const keyid[KEYFRAGSIZE], struct newkey const *nkeys); + +int maint_update(char *ringfile, struct newkey const *nkeys); int maint_check(char *ringfile, int options); void init_trust_lst(void); /* Show key in file f at keypos */ int show_key(FILE *f, long keypos, int what); +void show_update(char *s); /* possible values for 'what' of show_key() */ #define SHOW_TRUST 1 #define SHOW_SIGS 2 #define SHOW_HASH 4 #define SHOW_LISTFMT 8 +#define SHOW_CHANGE 16 #define SHOW_ALL (SHOW_TRUST|SHOW_SIGS) /* options for maint_check() */