Function gnunet_sys::GNUNET_DNSPARSER_check_label[][src]

pub unsafe extern "C" fn GNUNET_DNSPARSER_check_label(
    label: *const c_char
) -> c_int

Check if a label in UTF-8 format can be coded into valid IDNA. This can fail if the ASCII-conversion becomes longer than 63 characters.

@param label label to check (UTF-8 string) @return #GNUNET_OK if the label can be converted to IDNA, #GNUNET_SYSERR if the label is not valid for DNS names