aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpgme.h.in
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-10-08 19:14:52 +0000
committerWerner Koch <[email protected]>2016-10-08 19:17:48 +0000
commit0ea2ff67900c243fff9f689658dcb23d1c0961cd (patch)
treedbac0b0c700bec5ce5bb31c070047af3f00d4abe /src/gpgme.h.in
parentAdd missing includes. (diff)
downloadgpgme-0ea2ff67900c243fff9f689658dcb23d1c0961cd.tar.gz
gpgme-0ea2ff67900c243fff9f689658dcb23d1c0961cd.zip
core: New helper function gpgme_addrspec_from_uid.
* src/gpgme.h.in: Add gpgme_addrspec_from_uid. * src/gpgme.def, src/libgpgme.vers: Ditto. * src/mbox-util.c (gpgme_addrspec_from_uid): New. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/gpgme.h.in')
-rw-r--r--src/gpgme.h.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gpgme.h.in b/src/gpgme.h.in
index 20654db9..5c914ae7 100644
--- a/src/gpgme.h.in
+++ b/src/gpgme.h.in
@@ -846,7 +846,7 @@ struct _gpgme_user_id
/* 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
+ * might be slightly different. If no mail address is available
* NULL is stored. */
char *address;
@@ -2471,6 +2471,10 @@ const char *gpgme_pubkey_algo_name (gpgme_pubkey_algo_t algo);
algorithm ALGO, or NULL if that name is not known. */
const char *gpgme_hash_algo_name (gpgme_hash_algo_t algo);
+/* Return the addr-spec from a user id. Caller must free the result
+ * with gpgme_free. */
+char *gpgme_addrspec_from_uid (const char *uid);
+
/*