gsasl_server_mechlist(3)
π gsasl_server_mechlist(3) β the gsasl bestie manual π
okay so bestie, welcome to the gsasl manual page for gsasl_server_mechlist, and honestly? it's a little icon. let's get into it π«Ά
πΈ NAME πΈ
gsasl_server_mechlist β an API function. that's it, that's the whole name section. she's simple, she's iconic π
β¨ SYNOPSIS β¨
#include <gsasl.h>
int gsasl_server_mechlist(Gsasl * ctx, char ** out);
like, that's the whole vibe. two args, one int coming back at you. slay.
π ARGUMENTS π
Gsasl * ctxβ your libgsasl handle, aka the little bestie object that holds all the state. you bring her, she does the work πchar ** outβ the newly allocated output character array. yes, newly allocated. meaning somebody (spoiler: you) is gonna have to free it. no cap.
π¦ DESCRIPTION π¦
so here's the tea, fr fr: this function returns a newly allocated string packed with SASL names, each one separated by a space, and those are the mechanisms that the libgsasl server supports. like a little guest list for the party, but the party is SASL mechanism negotiation. the way that it just hands you a string and trusts you... main character energy honestly.
the out thing is allocated by this function, so it is the responsibility of the caller to deallocate it. not the function's problem, not the library's problem. yours. it's giving "here's a gift π now throw away the wrapping yourself". don't forget, bestie, or that's a memory leak and you'll be sad π
Return value: returns GSASL_OK if it all went well and everything ate, or an error code if it did not. vibe check accordingly β¨
π REPORTING BUGS π
found a bug? not the cute kind of bug? please tell the people:
- report bugs to
<bug-gsasl@gnu.org>π - general guidelines for reporting bugs live at:
https://www.gnu.org/gethelp/ - GNU SASL home page:
https://www.gnu.org/software/gsasl/
they want to hear from you, genuinely. bugs don't fix themselves, periodt.
π COPYRIGHT π
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, redistribute responsibly, 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, then this command:
info gsasl
should give you access to the complete manual. iykyk β it's the good stuff π
and as an alternative, you may obtain the manual from:
https://www.gnu.org/software/libidn/gsasl/manual/
ok that's the whole page bestie!! go forth, call gsasl_server_mechlist, print those mechanism names, and FREE THE STRING afterwards. that's the whole assignment π«‘
and that's a wrap from gsasl version 2.2.4, bestie β this page was living its best life as gsasl_server_mechlist(3), mwah ππ
π¦ where this page comes from
- arch rolling: gsasl 2.2.4-1 Β· LGPL-2.1-or-later AND GPL-3.0-or-later AND GFDL-1.3-or-later
- ubuntu stonking: libgsasl-dev 2.2.4-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms