SASL_GETOPT_T(3)

πŸ’– SASL_GETOPT_T(3) πŸ’–

okay bestie, welcome to the Cyrus SASL corner of the manual, section 3, and today's main character is sasl_getopt_t. yes it's a whole page just for one callback. she's iconic like that. πŸŽ€


✨ NAME ✨

sasl_getopt_t β€” Cyrus SASL documentation. that's it, that's the name, she's literally just documentation-core and we respect it. πŸ’…


🌸 SYNOPSIS 🌸

#include <sasl/sasl.h>

int sasl_getopt_t(void *context,
               const char *plugin_name,
               const char *option,
               const char ** result,
               unsigned * len);

look at her. five parameters. no cap, she's doing the most and we love her for it. πŸ¦‹


πŸ’œ DESCRIPTION πŸ’œ

int sasl_getopt_t(void *context,

const char *plugin_name,

const char *option,

const char ** result,

unsigned * len);

so here's the tea β˜• β€” sasl_getopt_t is used to retrieve an option from the application, and it's often mechanism specific. like, a real example? asking which KERBEROS_V4 srvtab file to use. yeah. she's out here fetching your config vibes. ✨

🧚 Parameters 🧚

  • context β€” is the SASL connection context. your connection's whole identity, basically her main character energy.
  • plugin_name β€” is the plugin this value is for. you gotta know who you're shopping for.
  • option β€” is a string representing the option. and bestie, listen: a common option that all server applications should handle is the method for checking plaintext passwords. see the administrators guide for a full description of this option. iykyk. πŸ‘‘

🫢 Memory management 🫢

Memory management of options supplied by the getopt callback should be done by the application. that part's on you, bestie, no take-backs.

however β€” and this is the important part β€” any requested option must remain available until the callback is no longer valid. that means:

don't be out here freeing stuff early, that's giving chaos and we are NOT about that life. πŸ’€


πŸ”₯ RETURN VALUE πŸ”₯

SASL callback functions should return SASL return codes. see sasl.h for a complete list. SASL_OK indicates success. πŸŽ‰

Other return codes indicate errors and should be handled. fr fr, don't ignore them, they're trying to tell you something.


🌈 SEE ALSO 🌈

go read them, they're all part of the same friend group. πŸ’–


πŸ‘‘ AUTHOR πŸ‘‘

The Cyrus Team. legends, honestly.


1993-2016, The Cyrus Team


and that's the whole page, bestie!! you ate that. slay. periodt. πŸ’…βœ¨

this was version 2.1.28, dated February 18, 2022 β€” mwah, love that for us. πŸ¦‹πŸŒΈπŸ’–