gsasl_decode(3)
π gsasl_decode(3) β the glow-up edition π
okay bestie, welcome to the gsasl_decode page from the gsasl manual (yes, section 3, library functions, we love a trilogy) β¨
πΈ NAME πΈ
gsasl_decode β literally just an API function, she's an icon, she decodes things π
β¨ SYNOPSIS β¨
#include <gsasl.h>
int gsasl_decode(Gsasl_session * sctx, const char * input, size_t
input_len, char ** output, size_t * output_len);
π ARGUMENTS π
Gsasl_session * sctxβ your libgsasl session handle, the main character of this whole operation π«Άconst char * inputβ the input byte array, aka the raw material, the lewk before the transformation β¨size_t input_lenβ how big that input byte array is, we respect her measurements πchar ** outputβ a newly allocated output byte array, fresh out of the box, brand new, no cap πsize_t * output_lenβ pointer to your output variable, which will hold the size of that output byte array. she tells you how much she ate π
π DESCRIPTION π
Decode data according to the negotiated SASL mechanism. it's giving... decoding. and depending on the vibe of the mechanism, that could mean the data was integrity protected or privacy protected β either way, this function handles it π¦
β οΈ bestie, listen: the output buffer is allocated by this function, and it is the responsibility of the caller to deallocate it by calling gsasl_free( output ). yes, that's on you. don't leave her hanging, that's a memory leak and we do NOT do that here π
Return value: returns GSASL_OK if encoding was successful, otherwise an error code. periodt. π
π REPORTING BUGS π
found a bug? spill the tea, not to me, to the actual maintainers:
- report bugs to <
bug-gsasl@gnu.org> π§ - general guidelines for reporting bugs: https://www.gnu.org/gethelp/ β they have instructions, use them, be a good citizen π«Ά
- GNU SASL home page: https://www.gnu.org/software/gsasl/ β the mothership π
π 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. slay, honestly, that's a generous license π
π 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. as an alternative you may obtain the manual from:
https://www.gnu.org/software/libidn/gsasl/manual/
iykyk, go read the full thing, the Texinfo manual is the extended director's cut π
and that's the whole page bestie, no notes π
gsasl 2.2.4 era, gsasl_decode(3), we're in the year of our lord 2026 and she's still serving. 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