gsasl_mechanism_name_p(3)
π gsasl_mechanism_name_p(3) β the vibe check for SASL mechanism names π
okay bestie, so this page lives in the gsasl manual (section 3, the library-call section, iykyk), and it's literally just one little function that goes π
β¨ NAME β¨
gsasl_mechanism_name_p β API function π«Ά
π SYNOPSIS π
#include <gsasl.h>
int gsasl_mechanism_name_p(const char * mech);
πΈ ARGUMENTS πΈ
const char * mechβ this is your input variable, and it's holding the mechanism name string. that's it, that's the whole job. it just wants a string, bestie π
π¦ DESCRIPTION π¦
So what does this do? it checks whether the mechanism name string mech follows syntactical rules. that's the whole mission. periodt.
but lowkey, listen, it's important what it does not do:
- it does not check that the name is registered with IANA π
- it does not check that the mechanism name is actually implemented and supported π
so like, it's a vibe check on the shape of the name, not a background check on the name's whole life. do not @ her about IANA, she does not know and she does not care.
Now the actual rules, no cap: SASL mechanisms are named by strings, from 1 to 20 characters in length, consisting of upper-case letters, digits, hyphens, and/or underscores. that's the tea β convert to lowercase at your own peril, she will not accept it.
π RETURNS π
non-zero when mechanism name string mech conforms to rules, zero when it does not meet the requirements.
so: truthy = slay β , falsy = not it β.
β SINCE β
2.0.0 β she's been iconic for a minute, not new here π
π REPORTING BUGS π
found a bug? tell the gsasl girlies, they want to know fr fr:
- Report bugs to <bug-gsasl@gnu.org>. π
- General guidelines for reporting bugs:
https://www.gnu.org/gethelp/β read this first so your report is giving helpful and not giving vague, bestie π«Ά - 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, take her everywhere, just don't be weird about the receipts π
π SEE ALSO π
The full documentation for gsasl is maintained as a Texinfo manual, which is the β¨deluxeβ¨ version of this whole situation. If the info and gsasl programs are properly installed at your site, the command
info gsasl
should give you access to the complete manual. (go press Enter on that, it's free real estate π§)
As an alternative you may obtain the manual from:
https://www.gnu.org/software/libidn/gsasl/manual/
okay that's the whole page, you ate it, I'm obsessed π if you remember nothing else, remember: 1 to 20 chars, upper-case letters, digits, hyphens, underscores, and no IANA opinions. this has been the gsasl manual, version 2.2.4, page gsasl_mechanism_name_p(3), signing off with main character energy πβ¨π¦
π¦ 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