|
|
1.1.1.4 root 1: #ifndef KEYMAINT_H
2: #define KEYMAINT_H
3:
4: #include "pgp.h" /* For KEYFRAGSIZE */
5:
6: /* Build the singly-linked list in the obvious way. */
7: struct newkey {
8: byte keyID[KEYFRAGSIZE];
9: struct newkey *next;
10: };
11: void free_newkeys(struct newkey *nkeys);
1.1.1.5 ! root 12: int ismember_newkeys(byte const keyid[KEYFRAGSIZE],
! 13: struct newkey const *nkeys);
1.1.1.4 root 14:
15: int maint_update(char *ringfile, struct newkey const *nkeys);
16: int maint_check(char *ringfile, int options);
17: void init_trust_lst(void);
18:
19: /* Show key in file f at keypos */
20: int show_key(FILE *f, long keypos, int what);
21: void show_update(char *s);
22:
23: /* possible values for 'what' of show_key() */
24: #define SHOW_TRUST 1
25: #define SHOW_SIGS 2
26: #define SHOW_HASH 4
27: #define SHOW_LISTFMT 8
28: #define SHOW_CHANGE 16
29: #define SHOW_ALL (SHOW_TRUST|SHOW_SIGS)
30:
31: /* options for maint_check() */
32: #define MAINT_CHECK 0x01
33: #define MAINT_VERBOSE 0x02
34: #define MAINT_SILENT 0x04
35:
36:
37: int readkpacket(FILE *f, byte *ctb, char *userid, byte *keyID, byte *sigkeyID);
38: int read_trust(FILE *f, byte *keyctrl);
39: void write_trust (FILE *f, byte trustbyte);
40: void write_trust_pos(FILE *f, byte keyctrl, long pos);
41:
42: int ask_owntrust(char *userid, byte cur_trust);
43:
44: char * user_from_keyID(byte *keyID);
45: int setkrent(char *keyring);
46: void endkrent();
47: int init_userhash();
48:
49:
50: extern char trust_lst[8][16];
51:
52: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.