gsasl_server_application_data_set(3)
π gsasl_server_application_data_set(3) π
okay bestie so you're deep in the gsasl man pages and you landed on this one, welcome, pull up a chair π«Ά this is from the gsasl manual, section 3, and it's a little baby function that stores your stuff for later. let's get into it β¨
πΈ NAME πΈ
gsasl_server_application_data_set β it's an API function, that's the whole vibe π
π¦ SYNOPSIS π¦
#include <gsasl.h>
void gsasl_server_application_data_set(Gsasl_session * sctx, void *
application_data);
like, look at her. two arguments, returns nothing, does exactly one thing. minimalist queen π
π ARGUMENTS π
Gsasl_session * sctxβ this is your libgsasl server handle. the session object. the main character of the operation fr fr.void * application_dataβ an opaque pointer to whatever application specific data you want to stash in there. opaque means you know what it is and libgsasl does not, and honestly? respect. it's giving mystery π΅οΈ
β¨ DESCRIPTION β¨
so what this does is: it stores application specific data inside that libgsasl server handle. that's it. that's the job.
and then later β for instance, when you're inside a callback β you can get it back by calling gsasl_server_application_data_get(). bestie it's literally a little locker, you put your stuff in, you come back for it later π
the way this is normally used is by the application to maintain state between the main program and the callback. because your callback doesn't have your local variables, and you're not about to make everything a global, so you tuck a pointer in here and pull it back out when the callback fires. iconic behaviour, no cap π
π DEPRECATED π
β οΈ okay so this is the part where I have to be serious for one second. This function is DEPRECATED. Do not start new code on it.
Use gsasl_callback_hook_set() or gsasl_session_hook_set() instead. those are the glow-up versions, this one is the 2002 original. it still works but it's lowkey retired π
π REPORTING BUGS π
found a bug? found something cursed? tell the gsasl people, they want to know:
- 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/
pls be nice and pls include details, bug reports without details are giving "it doesn't work" and that helps nobody π₯Ί
π 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.
like, copy it, remix it, put it in a zine, just keep the copyright notice and this notice attached. that's the deal and it's a very generous deal fr fr π«Ά
π 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. and if that doesn't work for whatever reason, as an alternative you may obtain the manual from:
http://www.gnu.org/software/gsasl/manual/
go read the whole thing, the full manual is where the lore lives πβ¨
and that's the page, bestie π this one came out of gsasl version 1.10.0, and yeah, it's a little vintage but it's still doing its thing. stay hydrated, check your pointers, and always free what you malloc πΈπ β¨
π¦ 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