From 3955dce06e9d056599e5ec7d40301e66b9305195 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 23 Aug 2016 06:48:50 +0200 Subject: 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 --- src/gpgme.h.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gpgme.h.in') 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; -- cgit v1.2.3