2 * Copyright notice from original mutt:
3 * Copyright (C) 1996,1997 Michael R. Elkins <me@mutt.org>
4 * Copyright (C) 1999-2000 Thomas Roessler <roessler@does-not-exist.org>
6 * This file is part of mutt-ng, see http://www.muttng.org/.
7 * It's licensed under the GNU General Public License,
8 * please see the file GPL in the top level source directory.
13 typedef struct pgp_signature {
14 struct pgp_signature *next;
15 unsigned char sigtype;
22 struct pgp_uid *address;
27 const char *algorithm;
28 struct pgp_keyinfo *parent;
29 struct pgp_signature *sigs;
30 struct pgp_keyinfo *next;
32 short fp_len; /* length of fingerprint.
33 * 20 for sha-1, 16 for md5.
35 unsigned char fingerprint[20]; /* large enough to hold SHA-1 and RIPEMD160
36 hashes (20 bytes), MD5 hashes just use the
40 /* Note, that pgp_key_t is now pointer and declared in crypt.h */
42 typedef struct pgp_uid {
46 struct pgp_keyinfo *parent;
48 struct pgp_signature *sigs;
60 const char *pgp_pkalgbytype (unsigned char);
62 pgp_key_t pgp_remove_key (pgp_key_t *, pgp_key_t);
63 pgp_uid_t *pgp_copy_uids (pgp_uid_t *, pgp_key_t);
65 short pgp_canencrypt (unsigned char);
66 short pgp_cansign (unsigned char);
67 short pgp_get_abilities (unsigned char);
69 void pgp_free_key (pgp_key_t * kpp);
71 #define pgp_new_keyinfo() xmalloc(sizeof *((pgp_key_t)0))