4 * String defined via CPP denoting the header file version number.
5 * Used together with stringprep_check_version() to verify header file
6 * and run-time library consistency.
8 #define STRINGPREP_VERSION
13 * The IANA allocated prefix to use for IDNA. "xn--"
15 #define IDNA_ACE_PREFIX
18 * STRINGPREP_MAX_MAP_CHARS
20 * Maximum number of code points that can replace a single code point,
21 * during stringprep mapping.
23 #define STRINGPREP_MAX_MAP_CHARS
28 * Unicode code point data type, this is always a 32 bit unsigned
31 typedef uint32_t punycode_uint
;
34 * stringprep_nameprep:
35 * @in: input/ouput array with string to prepare.
36 * @maxlen: maximum length of input/output array.
38 * Prepare the input UTF-8 string according to the nameprep profile.
39 * The AllowUnassigned flag is true, use
40 * stringprep_nameprep_no_unassigned() for false AllowUnassigned.
41 * Returns 0 iff successful, or an error code.
44 stringprep_nameprep (char *in
, int maxlen
)
49 * stringprep_nameprep_no_unassigned:
50 * @in: input/ouput array with string to prepare.
51 * @maxlen: maximum length of input/output array.
53 * Prepare the input UTF-8 string according to the nameprep profile.
54 * The AllowUnassigned flag is false, use stringprep_nameprep() for
55 * true AllowUnassigned. Returns 0 iff successful, or an error code.
58 stringprep_nameprep_no_unassigned (char *in
, int maxlen
)
64 * @in: input/ouput array with string to prepare.
65 * @maxlen: maximum length of input/output array.
67 * Prepare the input UTF-8 string according to the draft iSCSI
68 * stringprep profile. Returns 0 iff successful, or an error code.
71 stringprep_iscsi (char *in
, int maxlen
)
76 * stringprep_kerberos5:
77 * @in: input/ouput array with string to prepare.
78 * @maxlen: maximum length of input/output array.
80 * Prepare the input UTF-8 string according to the draft Kerberos5
81 * stringprep profile. Returns 0 iff successful, or an error code.
84 stringprep_kerberos5 (char *in
, int maxlen
)
90 * @in: input/ouput array with string to prepare.
91 * @maxlen: maximum length of input/output array.
93 * Prepare the input UTF-8 string according to the draft SASL
94 * ANONYMOUS profile. Returns 0 iff successful, or an error code.
97 stringprep_plain (char *in
, int maxlen
)
102 * stringprep_xmpp_nodeprep:
103 * @in: input/ouput array with string to prepare.
104 * @maxlen: maximum length of input/output array.
106 * Prepare the input UTF-8 string according to the draft XMPP node
107 * identifier profile. Returns 0 iff successful, or an error code.
110 stringprep_xmpp_nodeprep (char *in
, int maxlen
)
115 * stringprep_xmpp_resourceprep:
116 * @in: input/ouput array with string to prepare.
117 * @maxlen: maximum length of input/output array.
119 * Prepare the input UTF-8 string according to the draft XMPP resource
120 * identifier profile. Returns 0 iff successful, or an error code.
123 stringprep_xmpp_resourceprep (char *in
, int maxlen
)
128 * stringprep_generic:
129 * @in: input/ouput array with string to prepare.
130 * @maxlen: maximum length of input/output array.
132 * Prepare the input UTF-8 string according to a hypotetical "generic"
133 * stringprep profile. This is mostly used for debugging or when
134 * constructing new stringprep profiles. Returns 0 iff successful, or
138 stringprep_generic (char *in
, int maxlen
)