Function sequoia_openpgp_ffi::packet::userid::pgp_user_id_name[][src]

#[no_mangle]
pub extern "C" fn pgp_user_id_name(
    errp: Option<&mut *mut Error>,
    uid: *const Packet,
    namep: &mut *mut c_char
) -> Status
Expand description

Returns the User ID’s name component, if any.

C Declaration

pgp_status_t
pgp_user_id_name (pgp_error_t *errp,
                  const pgp_packet_t uid,
                  char **namep);

The User ID is parsed according to de facto convention, and the name component is extracted.

If the User ID cannot be parsed, then an error is returned.

If the User ID does not contain a name component, *namep is set to NULL.