aboutsummaryrefslogtreecommitdiffstats
path: root/g10/packet.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1999-05-17 20:03:24 +0000
committerWerner Koch <[email protected]>1999-05-17 20:03:24 +0000
commit3983f30bd2f671d4f7c5bbe39a1d6a7b191f2af5 (patch)
treeef2ea1a332a2e954d1c5c86b66570da8fa6935b6 /g10/packet.h
parentSee ChangeLog: Sat May 8 19:28:33 CEST 1999 Werner Koch (diff)
downloadgnupg-3983f30bd2f671d4f7c5bbe39a1d6a7b191f2af5.tar.gz
gnupg-3983f30bd2f671d4f7c5bbe39a1d6a7b191f2af5.zip
See ChangeLog: Mon May 17 21:54:43 CEST 1999 Werner Koch
Diffstat (limited to 'g10/packet.h')
-rw-r--r--g10/packet.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/g10/packet.h b/g10/packet.h
index 741e10009..a2af98abb 100644
--- a/g10/packet.h
+++ b/g10/packet.h
@@ -46,7 +46,8 @@ typedef enum {
PKT_USER_ID =13, /* user id packet */
PKT_PUBLIC_SUBKEY =14, /* public subkey (OpenPGP) */
PKT_OLD_COMMENT =16, /* comment packet from an OpenPGP draft */
- PKT_COMMENT =61 /* new comment packet (private) */
+ PKT_COMMENT =61, /* new comment packet (private) */
+ PKT_ENCRYPTED_MDC =62, /* test: encrypted data with MDC */
} pkttype_t;
typedef struct packet_struct PACKET;
@@ -166,7 +167,8 @@ typedef struct {
typedef struct {
u32 len; /* length of encrypted data */
- byte new_ctb;
+ byte new_ctb; /* uses a new CTB */
+ byte mdc_method; /* test: > 0: this is is an encrypted_mdc packet */
IOBUF buf; /* IOBUF reference */
} PKT_encrypted;
@@ -180,6 +182,7 @@ typedef struct {
char name[1];
} PKT_plaintext;
+
/* combine all packets into a union */
struct packet_struct {
pkttype_t pkttype;
@@ -194,7 +197,7 @@ struct packet_struct {
PKT_comment *comment; /* PKT_COMMENT */
PKT_user_id *user_id; /* PKT_USER_ID */
PKT_compressed *compressed; /* PKT_COMPRESSED */
- PKT_encrypted *encrypted; /* PKT_ENCRYPTED */
+ PKT_encrypted *encrypted; /* PKT_ENCRYPTED[_MDC] */
PKT_plaintext *plaintext; /* PKT_PLAINTEXT */
} pkt;
};