gsasl_client_c...k_anonymous_set(3)

πŸ“¦ version 1.10.0, in ubuntu jammy

πŸ’– NAME πŸ’–

gsasl_client_callback_anonymous_set β€” bestie, it's an API function ✨

okay so real talk, this page lives in the gsasl manual (that's GNU SASL, the whole authentication vibe), and it's about setting one very specific little callback. let's get into it 🫢


🌸 SYNOPSIS 🌸

#include <gsasl.h>

void gsasl_client_callback_anonymous_set(Gsasl * ctx,
       Gsasl_client_callback_anonymous cb);

that's the whole shape of it. include the header, call the thing, done. no cap πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • Gsasl * ctx β€” the libgsasl handle. your main character context object, the one everything hangs off of πŸ‘‘
  • Gsasl_client_callback_anonymous cb β€” the callback function itself. this is the lil function you're handing over 🌸

πŸ¦‹ DESCRIPTION πŸ¦‹

So what does it do. You're specifying the callback function that the client uses to set the anonymous token β€” and that token is usually just the user's email address. like, that's it, that's the vibe πŸ“

and here's the cute part: later on you can grab that same function back with gsasl_client_callback_anonymous_get(). so it's a set/get situation, very balanced, very symmetrical, we love to see it ✨


πŸ’€ DEPRECATED πŸ’€

bestie. listen. this function is part of the old callback interface. it's giving legacy. it's giving "we don't do it like this anymore" 😭

The new interface uses gsasl_callback_set() to set the application callback, and uses gsasl_callback() or gsasl_property_get() to invoke the callback for certain properties.

so like, if you're writing fresh code, maybe don't reach for this one unless you have to. iykyk πŸ™ˆ


🌈 REPORTING BUGS 🌈

Found something cursed? Found something broken? Tell the people:

they genuinely want to know, fr fr 🫢


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: take it, share it, just keep the receipts, periodt πŸ’…)


⭐ 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 whole page, bestie!! this was the gsasl manual, version 1.10.0 β€” go forth and call your callbacks responsibly πŸŒΈπŸ’–βœ¨

πŸ“¦ where this page comes from