27 # include <stringprep.h>
29 # if defined HAVE_PR29_H && defined HAVE_PR29_8Z
51 char **out,
int *stringpreprc)
55 rc = stringprep_profile (in, out,
"SASLprep",
57 ? STRINGPREP_NO_UNASSIGNED : 0);
62 if (
rc != STRINGPREP_OK)
68 # if defined HAVE_PR29_8Z && defined HAVE_PR29_H
69 if (pr29_8z (*out) != PR29_SUCCESS)
74 *stringpreprc = STRINGPREP_NFKC_FAILED;
87 char **out,
int *stringpreprc _GL_UNUSED)
89 size_t i, inlen = strlen (in);
91 for (i = 0; i < inlen; i++)
98 *out = malloc (inlen + 1);
int gsasl_saslprep(const char *in, Gsasl_saslprep_flags flags _GL_UNUSED, char **out, int *stringpreprc _GL_UNUSED)