@deftypefun {int} {gnutls_utf8_password_normalize} (const unsigned char * @var{password}, unsigned @var{plen}, gnutls_datum_t * @var{out}, unsigned @var{flags}) @var{password}: contain the UTF-8 formatted password @var{plen}: the length of the provided password @var{out}: the result in an null-terminated allocated string @var{flags}: should be zero This function will convert the provided UTF-8 password according to the normalization rules in RFC7613. If the flag @code{GNUTLS_UTF8_IGNORE_ERRS} is specified, any UTF-8 encoding errors will be ignored, and in that case the output will be a copy of the input. @strong{Returns:} @code{GNUTLS_E_INVALID_UTF8_STRING} on invalid UTF-8 data, or 0 on success. @strong{Since:} 3.5.7 @end deftypefun