gsasl_session_hook_get(3)

✨ NAME ✨

gsasl_session_hook_get β€” an API function, bestie πŸ’… (it lives in the gsasl manual, section 3, and it's giving "tiny function, big main character energy")


🌸 SYNOPSIS 🌸

#include <gsasl.h>

void * gsasl_session_hook_get(Gsasl_session * sctx);

πŸŽ€ ARGUMENTS πŸŽ€

  • Gsasl_session * sctx β€” the libgsasl session handle. like, the actual session you're poking at 🫢

πŸ’– DESCRIPTION πŸ’–

okay so basically: this function retrieves application specific data from a libgsasl session handle. that's it. that's the whole vibe. ✨

the application data gets set using gsasl_callback_hook_set(). this is normally used by the application to maintain a per-session state between the main program and callbacks β€” so you stash your stuff in there, and your callbacks can go grab it later. no cap, it's the little pocket in your session's backpack πŸŽ’

Return value: returns the application specific data, or NULL. (so like, check for NULL, bestie, don't just start dereferencing it 😭)


πŸ¦‹ SINCE πŸ¦‹

0.2.14 β€” vintage, but still iconic πŸ‘‘


🌈 REPORTING BUGS 🌈

found something cursed? report bugs to <bug-gsasl@gnu.org>. πŸ“¬

general guidelines for reporting bugs: https://www.gnu.org/gethelp/

GNU SASL home page: https://www.gnu.org/software/gsasl/


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. (fr fr, 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. πŸ“– and as an alternative you may obtain the manual from:

https://www.gnu.org/software/libidn/gsasl/manual/

no notes, no missing details, we ate and left absolutely no crumbs πŸ“

and that's a wrap, babe 🫢 this was the gsasl_session_hook_get(3) page out of the gsasl manual β€” version 2.2.4 β€” from the GNU SASL squad. go forth and hook responsibly πŸ’…βœ¨

πŸ“¦ where this page comes from