aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgme.h.in
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-08-23 04:48:50 +0000
committerWerner Koch <[email protected]>2016-08-23 04:48:50 +0000
commit3955dce06e9d056599e5ec7d40301e66b9305195 (patch)
tree1336879434595922fb272d220a9584bd27828fe1 /src/gpgme.h.in
parentcore: New code for parsing mail addresses. (diff)
downloadgpgme-3955dce06e9d056599e5ec7d40301e66b9305195.tar.gz
gpgme-3955dce06e9d056599e5ec7d40301e66b9305195.zip
core: Extend gpgme_user_id_t with 'address'.
* src/mbox-util.c, src/mbox-util.h: Adjust for use in gpgme. * src/Makefile.am (main_sources): Add mbox-util. * src/key.c (_gpgme_key_append_name): Set 'address' field of uid. (gpgme_key_unref): Free it. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/gpgme.h.in')
-rw-r--r--src/gpgme.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpgme.h.in b/src/gpgme.h.in
index 40f54426..49cea778 100644
--- a/src/gpgme.h.in
+++ b/src/gpgme.h.in
@@ -801,6 +801,12 @@ struct _gpgme_user_id
/* Internal to GPGME, do not use. */
gpgme_key_sig_t _last_keysig;
+
+ /* The mail address (addr-spec from RFC5322) of the UID string.
+ * This is general the same as the EMAIL part of this struct but
+ * might be slightly different. IF no mail address is available
+ * NULL is stored. */
+ char *address;
};
typedef struct _gpgme_user_id *gpgme_user_id_t;