NeoMutt  2024-04-16-36-g75b6fb
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
pgppacket.h
Go to the documentation of this file.
1
23/* Definitions for a rudimentary PGP packet parser which is shared by neomutt
24 * proper and the PGP public key ring lister.
25 */
26
27#ifndef MUTT_NCRYPT_PGPPACKET_H
28#define MUTT_NCRYPT_PGPPACKET_H
29
30#include <stdio.h>
31
36{
37 PT_RES0 = 0,
54};
55
56unsigned char *pgp_read_packet(FILE *fp, size_t *len);
57void pgp_release_packet(void);
58
59#endif /* MUTT_NCRYPT_PGPPACKET_H */
PacketTags
PGP packet types.
Definition: pgppacket.h:36
@ PT_MARKER
Marker Packet.
Definition: pgppacket.h:47
@ PT_PUBKEY
Public Key Packet.
Definition: pgppacket.h:43
@ PT_SUBKEY
Subkey Packet.
Definition: pgppacket.h:51
@ PT_SIG
Signature Packet.
Definition: pgppacket.h:39
@ PT_NAME
Name Packet.
Definition: pgppacket.h:50
@ PT_SECKEY
Secret Key Packet.
Definition: pgppacket.h:42
@ PT_RES0
reserved
Definition: pgppacket.h:37
@ PT_ESK
Encrypted Session Key.
Definition: pgppacket.h:38
@ PT_LITERAL
Literal Data Packet.
Definition: pgppacket.h:48
@ PT_COMMENT
Comment Packet.
Definition: pgppacket.h:53
@ PT_TRUST
Trust Packet.
Definition: pgppacket.h:49
@ PT_SUBSECKEY
Secret Subkey Packet.
Definition: pgppacket.h:44
@ PT_OPS
One-Pass Signature Packet.
Definition: pgppacket.h:41
@ PT_RES15
Reserved.
Definition: pgppacket.h:52
@ PT_COMPRESSED
Compressed Data Packet.
Definition: pgppacket.h:45
@ PT_SKE
Symmetrically Encrypted Data Packet.
Definition: pgppacket.h:46
@ PT_CESK
Conventionally Encrypted Session Key Packet.
Definition: pgppacket.h:40
void pgp_release_packet(void)
Free the cached PGP packet.
Definition: pgppacket.c:231
unsigned char * pgp_read_packet(FILE *fp, size_t *len)
Read a PGP packet from a file.
Definition: pgppacket.c:78