gsasl_saslprep(3)
β¨ gsasl_saslprep(3) β the gsasl manual, bestie edition β¨
okay so this is a page from the gsasl manual, and today we're talking about gsasl_saslprep β she's a function, she's iconic, she preps your strings for you π
πΈ NAME πΈ
gsasl_saslprep β bestie, this is an API function. that's the whole name. short, sweet, does what it says π
π¦ SYNOPSIS π¦
#include <gsasl.h>
int gsasl_saslprep(const char * in, Gsasl_saslprep_flags flags, char **
out, int * stringpreprc);
likeβ¦ she's right there. three args and a return type. no cap π
π ARGUMENTS π
const char * inβ a UTF-8 encoded string. that's the thing you're feeding her, and yes it has to be UTF-8, she's not doing charsets today πGsasl_saslprep_flags flagsβ any SASLprep flag you want, e.g.GSASL_ALLOW_UNASSIGNED. so you get to pick the vibe β¨char ** outβ on exit, this holds a newly allocated output string. note the "newly allocated" part, we'll come back to it, it's giving "you own this now" πint * stringpreprcβ if this is non-NULL, it'll hold the precise stringprep return code. like the receipts of why it went the way it went π§Ύ
π DESCRIPTION π
Prepare string using SASLprep. that's the mission, that's the whole assignment π«Ά
On success, the out variable must be deallocated by the caller. yes queen, that's on you. she allocates, you free. that's the deal, periodt π
Return value: ReturnsGSASL_OKon success, orGSASL_SASLPREP_ERRORon error. two options, no in-between, she's decisive like that β
β SINCE β
0.2.3 β she's been here since 0.2.3, an OG, main character energy fr fr π
π REPORTING BUGS π
found a bug? don't just scream into the void, bestie, tell the people who can fix it:
- Report bugs to <bug-gsasl@gnu.org>. π§
- General guidelines for reporting bugs: https://www.gnu.org/gethelp/ β read this first, it helps everyone π
- GNU SASL home page: https://www.gnu.org/software/gsasl/ β the mothership πΈ
π COPYRIGHT π
Copyright Β© 2002-2026 Simon Josefsson.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. so likeβ¦ share it, remix it, whatever, just keep the receipts intact π
π SEE ALSO π
The full documentation for gsasl is maintained as a Texinfo manual. If the info and gsasl programs are properly installed at your site, the command
info gsasl
should give you access to the complete manual. As an alternative you may obtain the manual from:
https://www.gnu.org/software/libidn/gsasl/manual/
go forth and read the docs, it's self-care π§
that's the whole page, bestie π this was gsasl_saslprep(3) from the gsasl manual, version 2.2.4 β go prep those strings, slay, and remember to free() your out or you'll be leaking in the group chat πβ¨
π¦ where this page comes from
- arch rolling: gsasl 2.2.4-1 Β· LGPL-2.1-or-later AND GPL-3.0-or-later AND GFDL-1.3-or-later
- ubuntu stonking: libgsasl-dev 2.2.4-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms