SASL_GETSIMPLE_T(3)

✨ SASL_GETSIMPLE_T ✨

okay bestie, welcome to the Cyrus SASL</c> manual for sasl_getsimple_t β€” yes that's the whole name, it's giving "I didn't want a long name so I made it weird" πŸ’…


🌸 SYNOPSIS 🌸

#include <sasl/sasl.h>

int sasl_getsimple_t(void *context,
                    int id,
                    const char ** result,
                    unsigned * len);

πŸ¦‹ DESCRIPTION πŸ¦‹

int sasl_getsimple_t(void *context,

int id,

const char ** result,

unsigned * len);

so like. sasl_getsimple_t is your little errand-runner that goes and grabs the simple things from the application. and by "simple things" I mean, in practice: the authentication name, the authorization name, and the realm. that's it. that's the vibe. πŸŽ€

Parameters (aka the cast of characters) 🫢

  • context β€” the SASL connection context. the lil home base for this whole convo.
  • id β€” tells you which value is being asked for rn. possible values include:
    • SASL_CB_USER β€” client user identity to login as πŸ‘‘
    • SASL_CB_AUTHNAME β€” client authentication name
    • SASL_CB_LANGUAGE β€” comma-separated list of RFC 1766 languages 🌈
    • SASL_CB_CNONCE β€” client-nonce (for testing mostly) πŸ™ˆ
  • result β€” the value of the item requested. there it is. the thing. ⭐
  • len β€” lenth of the result. (yes, "lenth". that's what the docs say. we do not fix it. we respect it. 😭)

πŸ’– RETURN VALUE πŸ’–

SASL callback functions should return SASL return codes β€” go peek at sasl.h for the complete list, no cap. SASL_OK means success, and success means slay. πŸ”₯


🌟 SEE ALSO 🌟

RFC 4422,:saslman:sasl(3), sasl_callbacks(3), sasl_errors(3)


πŸ‘‘ AUTHOR πŸ‘‘

The Cyrus Team. iconic behavior, honestly.


1993-2016, The Cyrus Team


fr fr that's the whole page. go forth and fetch your simple things responsibly πŸ’œ

this has been Cyrus SASL 2.1.28, dated February 18, 2022 β€” mwah, bye bestie πŸ¦‹βœ¨