gsasl_callback(3)
β¨ gsasl_callback(3) β¨ β the gsasl manual, bestie edition π
okay so picture this: you're deep in the gsasl manual (that's GNU SASL, the auth library, hi π) and you land on gsasl_callback β a whole API function, no cap. She's giving "the library needs to ask your app a question and this is the phone she calls." Let's get into it π
πΈ SYNOPSIS πΈ
#include <gsasl.h>
int gsasl_callback(Gsasl * ctx, Gsasl_session * sctx, Gsasl_property prop);
π¦ ARGUMENTS π¦
Gsasl * ctxβ the handle you got fromgsasl_init(). She's allowed to beNULLbtw, and if she is, she just gets derived fromsctx. flexible queen πGsasl_session * sctxβ the session handle. your lil session bestie.Gsasl_property propβ an enumerated value of theGsasl_propertytype. it's literally telling everybody what the vibe is.
π DESCRIPTION π
So what this does is invoke the application callback β like, she calls up your app and goes "hey, your turn." π«Ά
The prop value is the whole point: it indicates what the callback is expected to do. Different prop, different task, iykyk.
Example time, because examples ate and left no crumbs: for GSASL_ANONYMOUS_TOKEN, the function is expected to invoke
gsasl_property_set(SCTX, GSASL_ANONYMOUS_TOKEN, "token")
where "token" is the anonymous token that your application wants the SASL mechanism to use. periodt. β¨
and if you're like "okay but what do all the other parameters MEAN" β bestie, the manual has you. go read the manual for the meaning of all parameters. π
Return value: she returns whatever the application callback returns π, or GSASL_NO_CALLBACK if no application was known. so like, if nobody's home, you get GSASL_NO_CALLBACK, not silence.
β SINCE β
0.2.0 β she's been iconic since way back π
π REPORTING BUGS π
Found a bug? Tell the people! Report bugs to <bug-gsasl@gnu.org>.
General guidelines for reporting bugs live at: https://www.gnu.org/gethelp/
GNU SASL home page: 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. (slay, very generous of them π«Ά)
π 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. no cap, that's the whole trick π§
As an alternative you may obtain the manual from:
https://www.gnu.org/software/libidn/gsasl/manual/
that's the whole page bestie π this was gsasl_callback(3) from the gsasl manual, version 2.2.4 β go forth and callback responsibly, 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