From 28be944bd9f6548b2eee5fc222ffeb52c9d2f8aa Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Thu, 21 Nov 2019 16:34:28 +0100 Subject: openpgp: When parsing User IDs, recognize URIs. - Restore the functionality removed in 8693a005 when replacing the RFC 2822 mailbox parser. --- openpgp-ffi/include/sequoia/openpgp.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'openpgp-ffi/include/sequoia/openpgp.h') 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 @@ -1265,6 +1265,19 @@ pgp_status_t pgp_user_id_email(pgp_error_t *errp, pgp_packet_t uid, 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. /// -- cgit v1.2.3