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