saslprep.c File Reference

#include "internal.h"

Go to the source code of this file.


int gsasl_saslprep (const char *in, Gsasl_saslprep_flags flags, char **out, int *stringpreprc)

Function Documentation

int gsasl_saslprep ( const char *  in,
Gsasl_saslprep_flags  flags,
char **  out,
int *  stringpreprc 


in a UTF-8 encoded string.
flags any SASLprep flag, e.g., GSASL_ALLOW_UNASSIGNED.
out on exit, contains newly allocated output string.
stringpreprc if non-NULL, will hold precise stringprep return code.

Prepare string using SASLprep. On success, the variable must be deallocated by the caller.

Return value: Returns GSASL_OK on success, or GSASL_SASLPREP_ERROR on error.

Since: 0.2.3

Definition at line 48 of file saslprep.c.