gsasl_server_listmech(3)

πŸ“¦ version 1.10.0, in ubuntu jammy

πŸ’– NAME πŸ’–

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


🌸 SYNOPSIS 🌸

#include <gsasl.h>

int gsasl_server_listmech(Gsasl * ctx, char * out, size_t * outlen);

πŸŽ€ ARGUMENTS πŸŽ€

  • Gsasl * ctx β€” the libgsasl handle, aka your main character 🫢
  • char * out β€” the output character array, where the tea gets written πŸ’…
  • size_t * outlen β€” okay so on the way in this is the maximum size of the output character array, and on the way out it holds the actual length of the output array. she does double duty, iconic behavior honestly πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

So basically: this one writes the SASL names β€” separated by a space, no cap β€” of all the mechanisms your libgsasl server supports, straight into the output array. ✨

And here's the little trick that lives rent free in my head: to find out how big the output array needs to be, you call this function with a NULL out parameter. like, you gotta ask her how much room she needs before you give her the room. lowkey genius 🧠

Return value: returns GSASL_OK if it went well, or an error code if it did not. simple as that 🌈


πŸ’€ DEPRECATED πŸ’€

Bestie. Listen. Use gsasl_server_mechlist() instead. this one is deprecated, she's retired, she's living her soft life now πŸ™ˆ

πŸ“ REPORTING BUGS πŸ“

Found a bug? Not the vibe. Report it to <bug-gsasl@gnu.org> πŸ’Œ

General guidelines for reporting bugs live at: http://www.gnu.org/gethelp/

And the GNU SASL home page is right here: http://www.gnu.org/software/gsasl/


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. fr fr, no royalty, just keep the notice 🫢


🌈 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 β€” brought to you by gsasl 1.10.0 and the gsasl_server_listmech(3) era. slay, go read the non-deprecated one πŸ’…βœ¨

πŸ“¦ where this page comes from