1gnutls_utf8_password_normalize(3)   gnutls   gnutls_utf8_password_normalize(3)
2
3
4

NAME

6       gnutls_utf8_password_normalize - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int  gnutls_utf8_password_normalize(const  unsigned  char  *  password,
12       unsigned plen, gnutls_datum_t * out, unsigned flags);
13

ARGUMENTS

15       const unsigned char * password
16                   contain the UTF-8 formatted password
17
18       unsigned plen
19                   the length of the provided password
20
21       gnutls_datum_t * out
22                   the result in an null-terminated allocated string
23
24       unsigned flags
25                   should be zero
26

DESCRIPTION

28       This function will convert the provided UTF-8 password according to the
29       normalization rules in RFC7613.
30
31       If  the  flag  GNUTLS_UTF8_IGNORE_ERRS is specified, any UTF-8 encoding
32       errors will be ignored, and in that case the output will be a  copy  of
33       the input.
34

RETURNS

36       GNUTLS_E_INVALID_UTF8_STRING on invalid UTF-8 data, or 0 on success.
37

SINCE

39       3.5.7
40

REPORTING BUGS

42       Report bugs to <bugs@gnutls.org>.
43       Home page: https://www.gnutls.org
44
45
47       Copyright © 2001-2020 Free Software Foundation, Inc., and others.
48       Copying  and  distribution  of this file, with or without modification,
49       are permitted in any medium  without  royalty  provided  the  copyright
50       notice and this notice are preserved.
51

SEE ALSO

53       The  full  documentation  for gnutls is maintained as a Texinfo manual.
54       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
55       visit
56
57       https://www.gnutls.org/manual/
58
59gnutls                              3.6.13   gnutls_utf8_password_normalize(3)
Impressum