SASL_GLOBAL_LISTMECH(3)

πŸ’– SASL_GLOBAL_LISTMECH πŸ’–

okay bestie, welcome to the manual page for sasl_global_listmech β€” she's a section 3 (library function) girlie from the Cyrus SASL docs, and she is lowkey iconic for doing exactly one thing and doing it perfectly ✨


🌸 NAME 🌸

sasl_global_listmech β€” Cyrus SASL documentation. that's it, that's the name, no notes πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <sasl/sasl.h>

const char ** sasl_global_listmech();

like... she takes zero arguments. no params, no drama, main character energy fr fr πŸ¦‹


✨ DESCRIPTION ✨

const char **sasl_global_listmech();

so here's the tea, bestie: sasl_global_listmech hands you back a null-terminated array of strings, and that array lists all the mechanisms that are loaded by either the client side or the server side of the library. both sides, one list, no cap 🫢

think of it like the group chat member list for your SASL library. everyone who showed up gets named. periodt.


πŸ’œ RETURN VALUE πŸ’œ

  • on success β†’ she returns a pointer to that array, slay ✨
  • on failure β†’ NULL, and the specific flavor of failure here is that the sasl library is uninitialized 😭

so if you're getting NULL back, check ur init, bestie, that's the vibe check failing fr fr.


πŸ‘‘ SEE ALSO πŸ‘‘

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


🌈 AUTHOR 🌈

The Cyrus Team 🧚


1993-2016, The Cyrus Team


ngl bestie, if you ever forget how to list every loaded mechanism, just remember: one call, no args, null-terminated array, done. iconic behaviour only πŸ’…βœ¨

okay that's the whole page, ily, go write some slay code πŸŽ€

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