gsasl_client_suggest_mechanism(3)
β¨ gsasl_client_suggest_mechanism β¨
okay bestie, so this one lives in the gsasl manual, section 3 (the library-call girlies section π
), and it's literally just the friend who looks at a whole group chat of SASL mechanisms and tells you which one to text back. no cap.
πΈ NAME πΈ
gsasl_client_suggest_mechanism β it's an API function, periodt.
π SYNOPSIS π
#include <gsasl.h>
const char * gsasl_client_suggest_mechanism(Gsasl * ctx, const char *
mechlist);
like. she takes two things and gives you back a string. so demure of her π«Ά
π¦ ARGUMENTS π¦
Gsasl * ctxβ your libgsasl handle, aka her main character passport. she needs it to know who she's working with.const char * mechlistβ an input character array with SASL mechanism names in it, separated by invalid characters (e.g.SPC). so like, a list of names where the glue holding them together is nonsense β classic.
π DESCRIPTION π
Given a list of mechanisms, suggest which to use. that's it, that's the whole job. she reads the room and picks a winner β¨
Return value: she hands you back the name of the "best" SASL mechanism supported by the libgsasl client which is present in the input string β or NULL if no supported mechanism is found π (empty-handed, no notes).
ngl, always check for NULL before you go dereferencing her answer. she is allowed to come back with nothing. yes she's iconic, no she doesn't owe you a mechanism.
π REPORTING BUGS π
found a bug? spill it to <bug-gsasl@gnu.org> π
the general guidelines for reporting bugs live at: https://www.gnu.org/gethelp/
and the GNU SASL home page is right here: 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 slay, basically β 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, 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/
that's the whole page bestie, go forth and call her π
sign-off szn β this wasgsaslversion2.2.4, section3, and yeah β she's a libgsasl function through and through. mwah. π
π¦ 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