gsasl_saslprep(3)

gsasl_saslprep3

Api function

Usage

#include <gsasl.h>

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

Arguments

const char * in

a UTF-8 encoded string.

Gsasl_saslprep_flags flags

any SASLprep flag, e.g., GSASL_ALLOW_UNASSIGNED.

char ** out

on exit, contains newly allocated output string.

int * stringpreprc

if non-NULL, will hold precise stringprep return code.

Overview

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

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

Since

0.2.3

Releases

11 releases since Debian 4.0 (Etch); the text changed 7 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7–10
  5. 11
  6. 12
  7. 13
  8. Arch

Reporting bugs

Report bugs to <[email protected]>.
General guidelines for reporting bugs: https://www.gnu.org/gethelp/
GNU SASL home page: https://www.gnu.org/software/gsasl/

From gsasl 2.2.4-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.