2 * Copyright notice from original mutt:
3 * Copyright (C) 2001 Thomas Roessler <roessler@does-not-exist.org>
5 * This file is part of mutt-ng, see http://www.muttng.org/.
6 * It's licensed under the GNU General Public License,
7 * please see the file GPL in the top level source directory.
11 * Definitions for a rudimentary PGP packet parser which is shared
12 * by mutt proper and the PGP public key ring lister.
19 PT_RES0 = 0, /* reserved */
20 PT_ESK, /* Encrypted Session Key */
21 PT_SIG, /* Signature Packet */
22 PT_CESK, /* Conventionally Encrypted Session Key Packet */
23 PT_OPS, /* One-Pass Signature Packet */
24 PT_SECKEY, /* Secret Key Packet */
25 PT_PUBKEY, /* Public Key Packet */
26 PT_SUBSECKEY, /* Secret Subkey Packet */
27 PT_COMPRESSED, /* Compressed Data Packet */
28 PT_SKE, /* Symmetrically Encrypted Data Packet */
29 PT_MARKER, /* Marker Packet */
30 PT_LITERAL, /* Literal Data Packet */
31 PT_TRUST, /* Trust Packet */
32 PT_NAME, /* Name Packet */
33 PT_SUBKEY, /* Subkey Packet */
34 PT_RES15, /* Reserved */
35 PT_COMMENT /* Comment Packet */
38 unsigned char *pgp_read_packet (FILE * fp, size_t * len);
39 void pgp_release_packet (void);