summaryrefslogtreecommitdiffstats
path: root/g10/packet.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2016-07-01 15:40:56 +0200
committerWerner Koch <wk@gnupg.org>2016-07-01 16:27:43 +0200
commitf015552374d69e28292a12f2b91ab34d65c9b457 (patch)
tree979adb3705d08686360edb56b3c198f4e620a832 /g10/packet.h
parentgpg: Make sure a user ID packet has always a terminating Nul in memory. (diff)
downloadgnupg2-f015552374d69e28292a12f2b91ab34d65c9b457.tar.xz
gnupg2-f015552374d69e28292a12f2b91ab34d65c9b457.zip
gpg: Allow to cache the mbox in a user id struct.
* g10/packet.h (PKT_user_id): Add field 'mbox'. * g10/free-packet.c (free_user_id): Free that. -- This will be required by the coming import filter. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/packet.h')
-rw-r--r--g10/packet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/packet.h b/g10/packet.h
index a496c4b21..08e2cb7f6 100644
--- a/g10/packet.h
+++ b/g10/packet.h
@@ -291,6 +291,7 @@ typedef struct
unsigned int ks_modify:1;
unsigned int compacted:1;
} flags;
+ char *mbox; /* NULL or the result of mailbox_from_userid. */
/* The text contained in the user id packet, which is normally the
name and email address of the key holder (See RFC 4880 5.11).
(Serialized.). For convenience an extra Nul is always appended. */