gsasl_client_mechlist(3)
π gsasl_client_mechlist β bestie edition π
okay so this is a page from the gsasl manual, section 3, and it's literally about the function gsasl_client_mechlist. it's giving "let me tell you which SASL mechanisms your client can do" energy and honestly? iconic. β¨
πΈ NAME πΈ
gsasl_client_mechlist β an API function, no cap π«Ά
β¨ SYNOPSIS β¨
#include <gsasl.h>
int gsasl_client_mechlist(Gsasl * ctx, char ** out);
like. there it is. the whole vibe in one line. π
π ARGUMENTS π
Gsasl * ctxβ your libgsasl handle, bestie. the main character of this whole operation. πchar ** outβ a newly allocated output character array. fresh out the box, brand new, allocated just for you. π
π¦ DESCRIPTION π¦
okay so the way this works is: it returns a newly allocated string that has the SASL names, separated by a space, of all the mechanisms that the libgsasl client supports. like, it's handing you the whole lineup. β
and listen β out is allocated by this function, which means it is the responsibility of the caller to deallocate it. so don't just walk away from it, bestie, that's a memory leak and we don't do those here. free it. π
Return value: it returns GSASL_OK if everything went slay, or an error code if it didn't. that's it, that's the tea. π
π REPORTING BUGS π
found a bug? not the cute kind? tell the devs, they wanna know:
- report bugs to
<bug-gsasl@gnu.org>π§ - general guidelines for reporting bugs live at:
https://www.gnu.org/gethelp/ - the GNU SASL home page is:
https://www.gnu.org/software/gsasl/
π 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, go off, share it, remix it, just keep the receipts. π«Ά
π§ 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, this 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/
ngl, go read the Texinfo manual, it's lowkey the full lore. iykyk. πβ¨
and that's a wrap bestie!! this page is from gsasl, version 2.2.4, and it was gsasl_client_mechlist(3) the whole time. periodt. ππΈπ¦
π¦ 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