gsasl_client_mechlist(3)

πŸ’– gsasl_client_mechlist β€” bestie edition πŸ’–

okay so this is a page from the gsasl manual, section 3, and it's literally about the function gsasl_client_mechlist. it's giving "let me tell you which SASL mechanisms your client can do" energy and honestly? iconic. ✨

🌸 NAME 🌸

gsasl_client_mechlist β€” an API function, no cap 🫢

✨ SYNOPSIS ✨

#include <gsasl.h>

int gsasl_client_mechlist(Gsasl * ctx, char ** out);

like. there it is. the whole vibe in one line. πŸ’…

πŸŽ€ ARGUMENTS πŸŽ€

  • Gsasl * ctx β€” your libgsasl handle, bestie. the main character of this whole operation. πŸ‘‘
  • char ** out β€” a newly allocated output character array. fresh out the box, brand new, allocated just for you. 🌈

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the way this works is: it returns a newly allocated string that has the SASL names, separated by a space, of all the mechanisms that the libgsasl client supports. like, it's handing you the whole lineup. ⭐

and listen β€” out is allocated by this function, which means it is the responsibility of the caller to deallocate it. so don't just walk away from it, bestie, that's a memory leak and we don't do those here. free it. πŸ’€

Return value: it returns GSASL_OK if everything went slay, or an error code if it didn't. that's it, that's the tea. 😭

πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? not the cute kind? tell the devs, they wanna know:

Copyright Β© 2002-2026 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. so like, go off, share it, remix it, just keep the receipts. 🫢

🧚 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, this command:

info gsasl

should give you access to the complete manual. as an alternative, you may obtain the manual from:

https://www.gnu.org/software/libidn/gsasl/manual/

ngl, go read the Texinfo manual, it's lowkey the full lore. iykyk. πŸ“šβœ¨

and that's a wrap bestie!! this page is from gsasl, version 2.2.4, and it was gsasl_client_mechlist(3) the whole time. periodt. πŸ’–πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from