gsasl_appinfo_set(3)

πŸ“¦ version 1.10.0, in ubuntu jammy

πŸ’– gsasl_appinfo_set(3) πŸ’–

okay bestie, welcome to the gsasl manual β€” this is the page for gsasl_appinfo_set, and yes it's a whole vibe, let's go ✨


🌸 NAME 🌸

gsasl_appinfo_set β€” API function


✨ SYNOPSIS ✨

#include <gsasl.h>

void gsasl_appinfo_set(Gsasl_session * sctx, void * appdata);

like, that's the whole thing. two args. no return value. she's simple, she's iconic πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • Gsasl_session * sctx β€” the libgsasl session handle, aka the main character of this whole operation 🫢
  • void * appdata β€” an opaque pointer to application specific data. it's giving mystery, it's giving "don't look at me, i'm just a pointer" πŸ™ˆ

πŸ’œ DESCRIPTION πŸ’œ

so what does she actually do? she stores application specific data inside the libgsasl session handle. that's it, that's the job. no cap 🧚

then later β€” for instance, inside a callback β€” you can get that data back by calling gsasl_appinfo_get(). so it's a little hand-off, a lil pass-the-torch moment πŸ”₯

and what's it normally used for? keeping state between your main program and the callback. so your callback can be like "oh hey, i remember you" and everything stays consistent. obsessed, honestly 😭


πŸ’€ DEPRECATED πŸ’€

bestie. no. this one is deprecated. use gsasl_callback_hook_set() instead. periodt.

like, she still works, but she's retired. respectfully. please use the other one πŸ™


πŸ› REPORTING BUGS πŸ›

found a bug? don't just sit there, tell someone! report bugs to <bug-gsasl@gnu.org> πŸ’Œ

general guidelines for reporting bugs live at: http://www.gnu.org/gethelp/

and the GNU SASL home page is right here: http://www.gnu.org/software/gsasl/


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.

(translation: go off, 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:

http://www.gnu.org/software/gsasl/manual/

and that's the page, bestie πŸ¦‹ gsasl 1.10.0, gsasl_appinfo_set(3), all wrapped up. slay, stay hydrated, and go call gsasl_callback_hook_set() instead πŸ’…βœ¨

πŸ“¦ where this page comes from