gsasl_stringprep_saslprep(3)
π NAME π
okay bestie, gather round β gsasl_stringprep_saslprep is the function name, and it's an API function from the gsasl manual, section 3. That's the whole vibe check for the title, no cap.
β¨ SYNOPSIS β¨
like, here's the summoning circle you gotta write first:
#include <gsasl.h>
char * gsasl_stringprep_saslprep(const char * in, int * stringprep_rc);
that's it. that's the whole signature. she's giving "small but mighty" π«Ά
π ARGUMENTS π
const char * inβ this is the input, bestie. an ASCII or UTF-8 string holding the data you wanna prepare according to SASLprep. it just sits there, being a string, minding its business.int * stringprep_rcβ a pointer to an output variable that'll get stuffed with the stringprep error code. or you can passNULLif you literally do not care about it. your call, main character. π
πΈ DESCRIPTION πΈ
so what does she do? she processes a Unicode string for comparison, following the "SASLprep" stringprep profile. that's the whole job. iconic behavior.
the intended audience here is Simple Authentication and Security Layer (SASL) mechanisms β think PLAIN, CRAM-MD5, and DIGEST-MD5, those legends β plus any other protocol out there swapping user names and/or passwords around. iykyk. π¦
Return value, listen up: she hands you back a newly allocated string that is the "SASLprep" processed form of the input string. but if something goes wrong? she returns NULL, and in that case stringprep_rc holds the stringprep library error code. so like, that second arg is not decorative, bestie. π
π DEPRECATED π
not me being the bearer of bad news butβ¦ this one is deprecated. use gsasl_saslprep() instead. periodt. the old girl still works (presumably) but she's been gently asked to step aside. π
π REPORTING BUGS π
found a bug? don't just scream into the group chat, actually report it:
- Report bugs to <bug-gsasl@gnu.org>.
- General guidelines for reporting bugs: http://www.gnu.org/gethelp/
- GNU SASL home page: http://www.gnu.org/software/gsasl/
π COPYRIGHT π
Copyright Β© 2002-2021 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.
(that's the legal bit, and honestly? very generous of them. slay. π)
π 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:
http://www.gnu.org/software/gsasl/manual/
and that's the whole page, bestie!! this was gsasl version 1.10.0, page gsasl_stringprep_saslprep(3) β go forth and stringprep responsibly, mwah π
β¨π
π¦ where this page comes from
- ubuntu jammy: libgsasl-dev 1.10.0-5 Β· 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