summaryrefslogtreecommitdiffstats
path: root/g10/packet.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2009-12-08 17:30:33 +0100
committerWerner Koch <wk@gnupg.org>2009-12-08 17:30:33 +0100
commit9a96043be4bed4e18320918e042b1601c9d93e95 (patch)
tree0066f7268d25aa95d59cf5fbb7570e487b809c52 /g10/packet.h
parentSupport CERT records via ADNS (diff)
downloadgnupg2-9a96043be4bed4e18320918e042b1601c9d93e95.tar.xz
gnupg2-9a96043be4bed4e18320918e042b1601c9d93e95.zip
Unification of the search descriptor usage.
Diffstat (limited to 'g10/packet.h')
-rw-r--r--g10/packet.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/g10/packet.h b/g10/packet.h
index 395e70ab9..2ceaba4f3 100644
--- a/g10/packet.h
+++ b/g10/packet.h
@@ -27,6 +27,7 @@
#include "cipher.h"
#include "filter.h"
#include "../common/openpgpdefs.h"
+#include "../common/userids.h"
#define DEBUG_PARSE_PACKET 1
@@ -151,14 +152,16 @@ typedef struct
#define ATTRIB_IMAGE 1
-/* This is the cooked form of attributes */
+/* This is the cooked form of attributes. */
struct user_attribute {
byte type;
const byte *data;
u32 len;
};
-typedef struct
+
+/* (See also keybox-search-desc.h) */
+struct gpg_pkt_user_id_s
{
int ref; /* reference counter */
int len; /* length of the name */
@@ -181,12 +184,15 @@ typedef struct
struct
{
/* TODO: Move more flags here */
- unsigned mdc:1;
- unsigned ks_modify:1;
- unsigned compacted:1;
+ unsigned int mdc:1;
+ unsigned int ks_modify:1;
+ unsigned int compacted:1;
} flags;
char name[1];
-} PKT_user_id;
+};
+typedef struct gpg_pkt_user_id_s PKT_user_id;
+
+
struct revoke_info
{