diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-11-21 16:34:28 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-11-21 16:50:44 +0100 |
commit | 28be944bd9f6548b2eee5fc222ffeb52c9d2f8aa (patch) | |
tree | 247030a61766a0c664a8466c74ad7e258f435e3e /openpgp-ffi/include/sequoia/openpgp.h | |
parent | b251f9e8857fba284f515061ac62013519997e30 (diff) |
openpgp: When parsing User IDs, recognize URIs.
- Restore the functionality removed in 8693a005 when replacing the
RFC 2822 mailbox parser.
Diffstat (limited to 'openpgp-ffi/include/sequoia/openpgp.h')
-rw-r--r-- | openpgp-ffi/include/sequoia/openpgp.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/openpgp-ffi/include/sequoia/openpgp.h b/openpgp-ffi/include/sequoia/openpgp.h index 6dadcbc0..fccc79d4 100644 --- a/openpgp-ffi/include/sequoia/openpgp.h +++ b/openpgp-ffi/include/sequoia/openpgp.h @@ -1266,6 +1266,19 @@ pgp_status_t pgp_user_id_email_normalized(pgp_error_t *errp, pgp_packet_t uid, char **emailp); /*/ +/// Returns the User ID's URI, if any. +/// +/// The User ID is parsed according to de factor convention, and the +/// URI is extracted. +/// +/// If the User ID cannot be parsed, then an error is returned. +/// +/// If the User ID does not contain a URI, *urip is set to NULL. +/*/ +pgp_status_t pgp_user_id_uri(pgp_error_t *errp, pgp_packet_t uid, + char **uri); + +/*/ /// Returns the value of the User Attribute Packet. /// /// The returned pointer is valid until `ua` is deallocated. If |