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:


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